So I'm trying to use the jReddit wrapper class because I am developing a reddit app on the android. Here is what I did:
build.xml
from here and "Ran as Ant" to create a jar file in the dist
folder as you can see abovelib
folder and built the path. The project looks like this:There are no errors, so I can run it on the android. However, when I click the login button to activate the function call onClickBtn
, before it can even get into the function it throws an error saying: Could not find class 'im.goel.jreddit.user.User', referenced from method com.example.reddit.MainActivity.onClickBtn
Did I not import this jar in correctly or am i just not using it properly? Why is it compiling fine like it can see the user class but when run on the android it doesn't know what it is?
Extract the contents to the same folder as your other classes. Usually src.
Or
Go to project properties (Alt + Enter) and select Java Build Path (Left panel). Then select Libraries (Top middle). Click the Add External JARs button and select your jar.