Java Question java.lang.NoClassDefFoundError:

DevBaby

Active Member
Licensed User
Longtime User
I get the error (at the bottom). I have read several related threads with a solution, but I am confused as to how my setup my be incorrect.

My Setup

1) I created both the Lib (from sdk that was not a jar, but separate java files) in eclipse
2) The Lib would not compile unless I used Java compiler 1.7 (as opposed to 1.6)
3) I created the wrapper using compiler 1.6 in eclipse

I also have the following Java version installed (maybe be wrong version)

Java.jpg


These are 2 solution threads that I am not sure if/how they apply.

For this solution here, I am not sure what version I have, unless the folder (pic above) suggests 7.

For this solution here, I am in a catch-22 because I have to compile the lib using Java compiler 1.7 or it won't compile.


Error trace below...

java.lang.NoClassDefFoundError: com.facebook.FacebookSdk
at cm.fb.share2.fbcommand.FbConnectTest(fbcommand.java:35)
at am.gameplus.pkg.main._fbbuttons_click(main.java:3901)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:174)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:162)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:158)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:66)
at android.view.View.performClick(View.java:4654)
at android.view.View$PerformClick.run(View.java:19438)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5487)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)
 
Top