Author Topic: jpct-ae 64 bit  (Read 8718 times)

Offline ggp

  • byte
  • *
  • Posts: 39
    • View Profile
jpct-ae 64 bit
« 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)



Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: jpct-ae 64 bit
« Reply #1 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.

Offline ggp

  • byte
  • *
  • Posts: 39
    • View Profile
Re: jpct-ae 64 bit
« Reply #2 on: March 27, 2012, 12:44:42 pm »
Maybe in properties/Libraries.

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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: jpct-ae 64 bit
« Reply #3 on: March 27, 2012, 12:55:29 pm »
???

Offline ggp

  • byte
  • *
  • Posts: 39
    • View Profile
Re: jpct-ae 64 bit
« Reply #4 on: March 27, 2012, 01:00:09 pm »
Java Built Pach/Libraries

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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: jpct-ae 64 bit
« Reply #5 on: March 27, 2012, 01:41:25 pm »
Honestly...i've no idea what that single line is supposed to tell me!?

Offline ggp

  • byte
  • *
  • Posts: 39
    • View Profile
Re: jpct-ae 64 bit
« Reply #6 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.

Offline zammbi

  • float
  • ****
  • Posts: 361
    • View Profile
Re: jpct-ae 64 bit
« Reply #7 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.

Offline ggp

  • byte
  • *
  • Posts: 39
    • View Profile
Re: jpct-ae 64 bit
« Reply #8 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 

Offline tobs89

  • byte
  • *
  • Posts: 1
    • View Profile
Re: jpct-ae 64 bit
« Reply #9 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

Offline ggp

  • byte
  • *
  • Posts: 39
    • View Profile
Re: jpct-ae 64 bit
« Reply #10 on: March 29, 2012, 03:39:30 pm »

Offline nnthing

  • byte
  • *
  • Posts: 1
    • View Profile
Re: jpct-ae 64 bit
« Reply #11 on: June 28, 2012, 10:56:37 am »

Offline K24A3

  • long
  • ***
  • Posts: 231
    • View Profile
Re: jpct-ae 64 bit
« Reply #12 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.