ayoubboulila / program-ab

Automatically exported from code.google.com/p/program-ab
0 stars 0 forks source link

Exception on android project? #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add Ab.jar on android project? 
2. Create an instance of class bot.
3. Exception: 
02-18 17:04:50.565: E/dalvikvm(11922): Could not find class 
'org.alicebot.ab.Bot', referenced from method 
com.ftp.test.Program_ab_TestActivity.onCreate
02-18 17:04:50.597: E/AndroidRuntime(11922): FATAL EXCEPTION: main
02-18 17:04:50.597: E/AndroidRuntime(11922): java.lang.NoClassDefFoundError: 
org.alicebot.ab.Bot
........................

Please help me why? Thanks alot. 

Original issue reported on code.google.com by trungnd1...@gmail.com on 18 Feb 2013 at 10:10

GoogleCodeExporter commented 9 years ago
You need to set the CLASSPATH so that Java can find org.alicebot.ab.*

Original comment by drwall...@gmail.com on 20 Feb 2013 at 3:14

GoogleCodeExporter commented 9 years ago
You need to recompile the project in Eclipse as a Android library

Original comment by cbutlerj...@gmail.com on 23 Mar 2013 at 2:50

GoogleCodeExporter commented 9 years ago
"You need to recompile the project in Eclipse as a Android library"

I tried, but i am new in eclipse ... Can you please help? How do i recompile in 
Eclipse?

Thanks.

Original comment by carlosme...@gmail.com on 3 Jun 2013 at 9:44

GoogleCodeExporter commented 9 years ago
I think your have add Ab.jar file to build path for that just right click on 
that and click on add to build path option in eclipse.May be its work.

Original comment by vijay.s....@gmail.com on 14 Mar 2014 at 6:47

GoogleCodeExporter commented 9 years ago
none of the suggestion is working. It's showing the same error.

Original comment by ishworis...@gmail.com on 27 Mar 2014 at 4:32

GoogleCodeExporter commented 9 years ago
Hey Ishworis,
I am also facing same problem.what you think what should be the problem?

Original comment by vijay.s....@gmail.com on 29 Mar 2014 at 7:14