Could not find class com.threed.jpct.RGBcolor

Started by Askadi, February 15, 2013, 06:24:37 PM

Previous topic - Next topic

Askadi

Hello..

i want to start developing with JPCT-AE but the Hello World will not work for me.

My Logcat:


02-15 17:08:43.134: E/dalvikvm(328): Could not find class 'com.threed.jpct.RGBColor', referenced from method com.askadi.helloworld.HelloWorld.<init>
02-15 17:08:43.194: E/AndroidRuntime(328): FATAL EXCEPTION: main
02-15 17:08:43.194: E/AndroidRuntime(328): java.lang.NoClassDefFoundError: com.threed.jpct.RGBColor
02-15 17:08:43.194: E/AndroidRuntime(328): at com.askadi.helloworld.HelloWorld.<init>(HelloWorld.java:46)
02-15 17:08:43.194: E/AndroidRuntime(328): at java.lang.Class.newInstanceImpl(Native Method)
02-15 17:08:43.194: E/AndroidRuntime(328): at java.lang.Class.newInstance(Class.java:1409)
02-15 17:08:43.194: E/AndroidRuntime(328): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
02-15 17:08:43.194: E/AndroidRuntime(328): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)
02-15 17:08:43.194: E/AndroidRuntime(328): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
02-15 17:08:43.194: E/AndroidRuntime(328): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
02-15 17:08:43.194: E/AndroidRuntime(328): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
02-15 17:08:43.194: E/AndroidRuntime(328): at android.os.Handler.dispatchMessage(Handler.java:99)
02-15 17:08:43.194: E/AndroidRuntime(328): at android.os.Looper.loop(Looper.java:123)
02-15 17:08:43.194: E/AndroidRuntime(328): at android.app.ActivityThread.main(ActivityThread.java:3683)
02-15 17:08:43.194: E/AndroidRuntime(328): at java.lang.reflect.Method.invokeNative(Native Method)
02-15 17:08:43.194: E/AndroidRuntime(328): at java.lang.reflect.Method.invoke(Method.java:507)
02-15 17:08:43.194: E/AndroidRuntime(328): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
02-15 17:08:43.194: E/AndroidRuntime(328): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
02-15 17:08:43.194: E/AndroidRuntime(328): at dalvik.system.NativeStart.main(Native Method)


How can i fix this Problem...


EgonOlsen

You have to setup your project correctly. Actually, the HelloWorld project that comes in the zip of the latest version should work on newer Eclipse plugins as it is.... ??? Anyway...either place the jpct jar in libs (NOT lib) or edit your project's build path and add the jpct jar to the resources to be exported.

Askadi

Ok its working now for all with a problem like this just copy the jpct-ae.jar in the libs folder.

binspaul

Hello All,

This is a common issue and this can be fixed by:

1. Copy the .jar file to the 'libs' folder.

2. Make sure that the .jar file is listed in the 'Java Build Path' 'Libraries' tab.

3. Make sure that the .jar file is checked in the 'Java Build Path' 'Order and Export' tab.

4. Take a clean build.

Thanks,
Binu Paul

[attachment deleted by admin]
Thanks & Regards,
Binu Paul