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.
Comment #1
Posted on Feb 20, 2013 by Happy HippoYou need to set the CLASSPATH so that Java can find org.alicebot.ab.*
Comment #2
Posted on Mar 23, 2013 by Helpful DogYou need to recompile the project in Eclipse as a Android library
Comment #3
Posted on Jun 3, 2013 by Quick Rabbit"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.
Comment #4
Posted on Mar 14, 2014 by Grumpy RabbitI 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.
Comment #5
Posted on Mar 27, 2014 by Happy Giraffenone of the suggestion is working. It's showing the same error.
Comment #6
Posted on Mar 29, 2014 by Grumpy RabbitHey Ishworis, I am also facing same problem.what you think what should be the problem?
Status: Done
Labels:
Type-Defect
Priority-Medium