Author Topic: The demo on homepage cannot run after building  (Read 14452 times)

Offline newton

  • byte
  • *
  • Posts: 8
    • View Profile
The demo on homepage cannot run after building
« on: January 07, 2013, 04:45:41 am »
hello.

I downloaded both "bones" and the android demo, imported them to eclipse. And then I clean the demo project and run. Errors appeared.

01-07 11:44:51.622: W/dalvikvm(2485): VFY: unable to find class referenced in signature (Lcom/threed/jpct/World;)
01-07 11:44:51.622: W/dalvikvm(2485): VFY: unable to find class referenced in signature (Lraft/jpct/bones/AnimatedGroup;)
01-07 11:44:51.622: W/dalvikvm(2485): VFY: unable to resolve virtual method 243: Lraft/jpct/bones/AnimatedGroup;.clone (Z)Lraft/jpct/bones/AnimatedGroup;
01-07 11:44:51.622: W/dalvikvm(2485): VFY: unable to resolve virtual method 247: Lraft/jpct/bones/AnimatedGroup;.getSkinClipSequence ()Lraft/jpct/bones/SkinClipSequence;
01-07 11:44:51.627: E/dalvikvm(2485): Could not find class 'raft.jpct.bones.AnimatedGroup', referenced from method bones.samples.android.NinjaDemoActivity.removeNinja
01-07 11:44:51.627: W/dalvikvm(2485): VFY: unable to resolve check-cast 97 (Lraft/jpct/bones/AnimatedGroup;) in Lbones/samples/android/NinjaDemoActivity;
01-07 11:44:51.627: W/dalvikvm(2485): VFY: unable to resolve static method 135: Lcom/threed/jpct/Logger;.log (Ljava/lang/String;)V
01-07 11:44:51.627: W/dalvikvm(2485): VFY: unable to resolve virtual method 247: Lraft/jpct/bones/AnimatedGroup;.getSkinClipSequence ()Lraft/jpct/bones/SkinClipSequence;
01-07 11:44:51.627: W/dalvikvm(2485): VFY: unable to resolve static method 135: Lcom/threed/jpct/Logger;.log (Ljava/lang/String;)V
01-07 11:44:51.627: W/dalvikvm(2485): VFY: unable to resolve static method 135: Lcom/threed/jpct/Logger;.log (Ljava/lang/String;)V
01-07 11:44:51.627: W/dalvikvm(2485): VFY: unable to resolve static method 135: Lcom/threed/jpct/Logger;.log (Ljava/lang/String;)V
01-07 11:44:51.637: W/dalvikvm(2485): VFY: unable to resolve static field 74 (maxPolysVisible) in Lcom/threed/jpct/Config;
01-07 11:44:51.637: W/dalvikvm(2485): VFY: unable to find class referenced in signature (Lcom/threed/jpct/World;)
01-07 11:44:51.637: W/dalvikvm(2485): VFY: unable to resolve virtual method 151: Lcom/threed/jpct/World;.getCamera ()Lcom/threed/jpct/Camera;
01-07 11:44:51.637: W/dalvikvm(2485): VFY: unable to find class referenced in signature (Lraft/jpct/bones/AnimatedGroup;)
01-07 11:44:51.637: W/dalvikvm(2485): VFY: unable to resolve virtual method 248: Lraft/jpct/bones/AnimatedGroup;.iterator ()Ljava/util/Iterator;
01-07 11:44:51.637: W/dalvikvm(2485): VFY: unable to find class referenced in signature (Lcom/threed/jpct/Camera;)
01-07 11:44:51.637: W/dalvikvm(2485): VFY: unable to find class referenced in signature (Lcom/threed/jpct/FrameBuffer;)
01-07 11:44:51.637: E/dalvikvm(2485): Could not find class 'com.threed.jpct.Camera', referenced from method bones.samples.android.NinjaDemoActivity$MyRenderer.calcDistance
01-07 11:44:51.637: W/dalvikvm(2485): VFY: unable to resolve new-instance 46 (Lcom/threed/jpct/Camera;) in Lbones/samples/android/NinjaDemoActivity$MyRenderer;
01-07 11:44:51.637: W/dalvikvm(2485): VFY: unable to find class referenced in signature (Lraft/jpct/bones/AnimatedGroup;)
01-07 11:44:51.642: W/dalvikvm(2485): VFY: unable to resolve virtual method 247: Lraft/jpct/bones/AnimatedGroup;.getSkinClipSequence ()Lraft/jpct/bones/SkinClipSequence;
01-07 11:44:51.642: W/dalvikvm(2485): VFY: unable to resolve virtual method 126: Lcom/threed/jpct/FrameBuffer;.clear ()V
01-07 11:44:51.647: W/dalvikvm(2485): VFY: unable to resolve static method 135: Lcom/threed/jpct/Logger;.log (Ljava/lang/String;)V
01-07 11:44:51.647: W/dalvikvm(2485): VFY: unable to resolve static method 135: Lcom/threed/jpct/Logger;.log (Ljava/lang/String;)V
01-07 11:44:51.647: W/dalvikvm(2485): threadid=1: thread exiting with uncaught exception (group=0x40ddd2d0)
01-07 11:44:51.657: E/AndroidRuntime(2485): FATAL EXCEPTION: main
01-07 11:44:51.657: E/AndroidRuntime(2485): java.lang.NoClassDefFoundError: com.threed.jpct.Config
01-07 11:44:51.657: E/AndroidRuntime(2485):    at bones.samples.android.NinjaDemoActivity$MyRenderer.<init>(NinjaDemoActivity.java:369)
01-07 11:44:51.657: E/AndroidRuntime(2485):    at bones.samples.android.NinjaDemoActivity.<init>(NinjaDemoActivity.java:63)
01-07 11:44:51.657: E/AndroidRuntime(2485):    at java.lang.Class.newInstanceImpl(Native Method)
01-07 11:44:51.657: E/AndroidRuntime(2485):    at java.lang.Class.newInstance(Class.java:1319)
01-07 11:44:51.657: E/AndroidRuntime(2485):    at android.app.Instrumentation.newActivity(Instrumentation.java:1069)
01-07 11:44:51.657: E/AndroidRuntime(2485):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2258)
01-07 11:44:51.657: E/AndroidRuntime(2485):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
01-07 11:44:51.657: E/AndroidRuntime(2485):    at android.app.ActivityThread.access$600(ActivityThread.java:151)
01-07 11:44:51.657: E/AndroidRuntime(2485):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1331)
01-07 11:44:51.657: E/AndroidRuntime(2485):    at android.os.Handler.dispatchMessage(Handler.java:99)
01-07 11:44:51.657: E/AndroidRuntime(2485):    at android.os.Looper.loop(Looper.java:155)
01-07 11:44:51.657: E/AndroidRuntime(2485):    at android.app.ActivityThread.main(ActivityThread.java:5485)
01-07 11:44:51.657: E/AndroidRuntime(2485):    at java.lang.reflect.Method.invokeNative(Native Method)
01-07 11:44:51.657: E/AndroidRuntime(2485):    at java.lang.reflect.Method.invoke(Method.java:511)
01-07 11:44:51.657: E/AndroidRuntime(2485):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028)
01-07 11:44:51.657: E/AndroidRuntime(2485):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:795)
01-07 11:44:51.657: E/AndroidRuntime(2485):    at dalvik.system.NativeStart.main(Native Method)


Please help.Thanks.

Offline newton

  • byte
  • *
  • Posts: 8
    • View Profile
Re: The demo on homepage cannot run after building
« Reply #1 on: January 07, 2013, 08:20:17 am »
it's solved. thanks.

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: The demo on homepage cannot run after building
« Reply #2 on: January 07, 2013, 12:41:11 pm »
ok

Offline Catweasel

  • byte
  • *
  • Posts: 4
    • View Profile
Re: The demo on homepage cannot run after building
« Reply #3 on: February 12, 2013, 12:33:16 am »
Having the same set of errors, or at least very similar.
I  am an abject newbie, and almost certainly did something wrong.
So I'll wipe those projects ans start over, saying what I did step by step, and you can say where I go wrong.

# I open ADT's eclipse, and ensure that HelloWorld-AE compiles and runs on my phone correctly.

# I have bones.zip and bones_android_demo.zip downloaded.

# I extract them into my workspace folder.

# In Eclipse, I click file->import->"Existing Projects into Workspace"->my workspace folder->Select root directory->Finish.

# I now have two new projects, "Bones" (with an orange "/!\" icon) and "Bones-Android-Ninja" (with a red "[X]" icon.

# I rightclick "Bones-Android-Ninja"->Properties->Android->Project Build Targer->Android 4.2 and click OK. The "[X]" icon disappears, replaced by an orange "/!\".

#With the "Bones-Android-Ninja" project selected, I Run As->Android Application->select my device->OK

# The screen of my device goes black, then "Sorry! The application Bones Ninja Demo (process bones.samples.android) has stopped unexpectedly. Please try again" -> "Force Close".

# The error messages as described above are given, though the full logcat messages are available if you would prefer.


My suspicion is that I'm using the wrong copy of Bones, but I don't see a Bones-AE for download anywhere. I am likely being blind.

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: The demo on homepage cannot run after building
« Reply #4 on: February 12, 2013, 12:50:58 am »
there is no Android version of Bones. same lib works for both desktop and Android.

in "Project properties | Java Build Path | Order and Export" tab, Bones project and jPCT-AE lib must be selected. somehow forgotten or maybe ADT's behaviour changed in time.

anyway, I've updated the zip. either correct yourself or re-download the demo app.

Offline Catweasel

  • byte
  • *
  • Posts: 4
    • View Profile
Re: The demo on homepage cannot run after building
« Reply #5 on: February 12, 2013, 04:53:28 am »
I downloaded the zipfiles again to make sure.
Worked perfectly, following my steps above: thank you!