jpct-ae 64 bit

Started by ggp, March 27, 2012, 11:48:19 AM

Previous topic - Next topic

ggp

The proyect  jpct-ae crash after install apk in my new machine 64bit.
The LogCat is

03-27 09:43:08.920: E/AndroidRuntime(437): FATAL EXCEPTION: main
03-27 09:43:08.920: E/AndroidRuntime(437): java.lang.NoClassDefFoundError: com.threed.jpct.RGBColor
03-27 09:43:08.920: E/AndroidRuntime(437):    at com.threed.jpct.example.HelloWorld.<init>(HelloWorld.java:50)
03-27 09:43:08.920: E/AndroidRuntime(437):    at java.lang.Class.newInstanceImpl(Native Method)
03-27 09:43:08.920: E/AndroidRuntime(437):    at java.lang.Class.newInstance(Class.java:1409)
03-27 09:43:08.920: E/AndroidRuntime(437):    at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
03-27 09:43:08.920: E/AndroidRuntime(437):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)
03-27 09:43:08.920: E/AndroidRuntime(437):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
03-27 09:43:08.920: E/AndroidRuntime(437):    at android.app.ActivityThread.access$1500(ActivityThread.java:117)
03-27 09:43:08.920: E/AndroidRuntime(437):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
03-27 09:43:08.920: E/AndroidRuntime(437):    at android.os.Handler.dispatchMessage(Handler.java:99)
03-27 09:43:08.920: E/AndroidRuntime(437):    at android.os.Looper.loop(Looper.java:123)
03-27 09:43:08.920: E/AndroidRuntime(437):    at android.app.ActivityThread.main(ActivityThread.java:3683)
03-27 09:43:08.920: E/AndroidRuntime(437):    at java.lang.reflect.Method.invokeNative(Native Method)
03-27 09:43:08.920: E/AndroidRuntime(437):    at java.lang.reflect.Method.invoke(Method.java:507)
03-27 09:43:08.920: E/AndroidRuntime(437):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
03-27 09:43:08.920: E/AndroidRuntime(437):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
03-27 09:43:08.920: E/AndroidRuntime(437):    at dalvik.system.NativeStart.main(Native Method)



EgonOlsen

I've no idea what 64bit should have to do with the APK as Android is 32bit, but anyway...seems to be a problem with your setup to me. RGBColor is simply the first class that it tries to instantiate when initiliazing the class. Make sure that the jpct.jar is actually part of your APK. If you create it by using Eclipse, make sure that you link to the jar instead of configuring a user library for that or linking to another project that contains it. In both cases, the jar won#t be included in your APK.

ggp

Maybe in properties/Libraries.

com.android.ide.eclipse.adt.LIBRARIES(unbound)

EgonOlsen


ggp

Java Built Pach/Libraries

  • com.android.ide.eclipse.adt.LIBRARIES(unbound)

EgonOlsen

Honestly...i've no idea what that single line is supposed to tell me!?

ggp

Sorry my English is not very good.

work all the android projects less the projects jpct-ae.

In windows 7 64 bit not working.

In Vista 32 bits is fine.

zammbi

The latest eclipse plugin did some changes on how it handles android libraries. I try putting jpct in the "libs" folder.

ggp

Solved, copy folder android-sdk-windows and folder eclipse exactly, and uninstall the apk.
works perfect!!!!!
;D ;D 

tobs89

Yes the problem is caused by the lack of the jar in the apk.
I solve it copying the jar in the folder of the source files in my project



K24A3

This is still happening with the recent SDK rev. Quick fix:

Open your project branch and rename the folder lib to libs  (or vice versa), then go to the Project Properties -> Java Build Path, and update the jPCT jar disk location. Clean and build, problem solved.