Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - mccluredanr

#1
Support / Getting Hello World to work
September 23, 2012, 01:22:48 AM
Hey so I created an Android app on Eclipse, then I copied the files that came in examples/helloworld-ae into my project directory. I replaced all files in my empty project directory with those files. My goal was to just get a working app that I could edit and play around with. It builds with no errors but when it runs it simply shows "Unfortunately Helloworld has stopped" on my AVD. I have made sure to include the jpct-ae jar in the library and plugin build path. Any thoughts on what I could have done wrong would help me greatly.

Dan

Edit: I thought this might help. Its the logcat of when the app starts to run. I've read through it, but I don't really know what most of the stuff means. I'm going to keep googleing them but I would still like any tips.


09-22 16:29:35.315: E/Trace(639): error opening trace file: No such file or directory (2)
09-22 16:29:35.636: D/AndroidRuntime(639): Shutting down VM
09-22 16:29:35.686: W/dalvikvm(639): threadid=1: thread exiting with uncaught exception (group=0x40a13300)
09-22 16:29:35.696: E/AndroidRuntime(639): FATAL EXCEPTION: main
09-22 16:29:35.696: E/AndroidRuntime(639): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.threed.jpct.example/com.threed.jpct.example.HelloWorld}: java.lang.ClassNotFoundException: com.threed.jpct.example.HelloWorld
09-22 16:29:35.696: E/AndroidRuntime(639): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1983)
09-22 16:29:35.696: E/AndroidRuntime(639): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
09-22 16:29:35.696: E/AndroidRuntime(639): at android.app.ActivityThread.access$600(ActivityThread.java:130)
09-22 16:29:35.696: E/AndroidRuntime(639): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
09-22 16:29:35.696: E/AndroidRuntime(639): at android.os.Handler.dispatchMessage(Handler.java:99)
09-22 16:29:35.696: E/AndroidRuntime(639): at android.os.Looper.loop(Looper.java:137)
09-22 16:29:35.696: E/AndroidRuntime(639): at android.app.ActivityThread.main(ActivityThread.java:4745)
09-22 16:29:35.696: E/AndroidRuntime(639): at java.lang.reflect.Method.invokeNative(Native Method)
09-22 16:29:35.696: E/AndroidRuntime(639): at java.lang.reflect.Method.invoke(Method.java:511)
09-22 16:29:35.696: E/AndroidRuntime(639): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
09-22 16:29:35.696: E/AndroidRuntime(639): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-22 16:29:35.696: E/AndroidRuntime(639): at dalvik.system.NativeStart.main(Native Method)
09-22 16:29:35.696: E/AndroidRuntime(639): Caused by: java.lang.ClassNotFoundException: com.threed.jpct.example.HelloWorld
09-22 16:29:35.696: E/AndroidRuntime(639): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
09-22 16:29:35.696: E/AndroidRuntime(639): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
09-22 16:29:35.696: E/AndroidRuntime(639): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
09-22 16:29:35.696: E/AndroidRuntime(639): at android.app.Instrumentation.newActivity(Instrumentation.java:1053)
09-22 16:29:35.696: E/AndroidRuntime(639): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1974)
09-22 16:29:35.696: E/AndroidRuntime(639): ... 11 more
09-22 16:29:41.225: I/Process(639): Sending signal. PID: 639 SIG: 9