Author Topic: Could not find class com.threed.jpct.RGBcolor  (Read 2254 times)

Offline Askadi

  • byte
  • *
  • Posts: 2
    • View Profile
Could not find class com.threed.jpct.RGBcolor
« on: February 15, 2013, 06:24:37 pm »
Hello..

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

My Logcat:

Code: [Select]
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...


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Could not find class com.threed.jpct.RGBcolor
« Reply #1 on: February 15, 2013, 06:35:57 pm »
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.

Offline Askadi

  • byte
  • *
  • Posts: 2
    • View Profile
Re: Could not find class com.threed.jpct.RGBcolor
« Reply #2 on: February 15, 2013, 06:38:21 pm »
Ok its working now for all with a problem like this just copy the jpct-ae.jar in the libs folder.

Offline binspaul

  • byte
  • *
  • Posts: 4
    • View Profile
Re: Could not find class com.threed.jpct.RGBcolor
« Reply #3 on: July 18, 2013, 06:53:45 am »
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