www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: ggp on March 27, 2012, 11:48:19 am

Title: jpct-ae 64 bit
Post by: ggp on March 27, 2012, 11:48:19 am
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)


Title: Re: jpct-ae 64 bit
Post by: EgonOlsen on March 27, 2012, 12:18:22 pm
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.
Title: Re: jpct-ae 64 bit
Post by: ggp on March 27, 2012, 12:44:42 pm
Maybe in properties/Libraries.

com.android.ide.eclipse.adt.LIBRARIES(unbound)
Title: Re: jpct-ae 64 bit
Post by: EgonOlsen on March 27, 2012, 12:55:29 pm
???
Title: Re: jpct-ae 64 bit
Post by: ggp on March 27, 2012, 01:00:09 pm
Java Built Pach/Libraries

Title: Re: jpct-ae 64 bit
Post by: EgonOlsen on March 27, 2012, 01:41:25 pm
Honestly...i've no idea what that single line is supposed to tell me!?
Title: Re: jpct-ae 64 bit
Post by: ggp on March 27, 2012, 01:51:58 pm
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.
Title: Re: jpct-ae 64 bit
Post by: zammbi on March 27, 2012, 02:00:32 pm
The latest eclipse plugin did some changes on how it handles android libraries. I try putting jpct in the "libs" folder.
Title: Re: jpct-ae 64 bit
Post by: ggp on March 28, 2012, 03:03:14 pm
Solved, copy folder android-sdk-windows and folder eclipse exactly, and uninstall the apk.
works perfect!!!!!
 ;D ;D 
Title: Re: jpct-ae 64 bit
Post by: tobs89 on March 28, 2012, 07:27:58 pm
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
Title: Re: jpct-ae 64 bit
Post by: ggp on March 29, 2012, 03:39:30 pm
this is the problem

http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17
Title: Re: jpct-ae 64 bit
Post by: nnthing on June 28, 2012, 10:56:37 am
i solved by http://tools.android.com/recent/dealingwithdependenciesinandroidprojects  :)
Title: Re: jpct-ae 64 bit
Post by: K24A3 on November 14, 2012, 09:48:03 am
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.