Processing exporting problem (Applet exception)
in
Integration and Hardware
•
2 years ago
hi,
i have a problem exporting an application with processing. i wrote an app which connects to facebook via http post calls and the lobo browser. this works fine when i start the code out of processing itself. but when i export it as an application (i am on a mac *.app) then it just stops working after the facebook login. first question: how can i debug or get the exceptions which are thrown during the process? then i thought i just export a jar file with the Export option under processing. i tried to run it with "java -jar facebook_oauth_example.jar", but this gives me the exception:
- Exception in thread "main" java.lang.NoClassDefFoundError: processing/core/PApplet
- at java.lang.ClassLoader.defineClass1(Native Method)
- at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
- at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
- at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
- at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
- at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
- at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
- at java.security.AccessController.doPrivileged(Native Method)
- at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
- at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
- Caused by: java.lang.ClassNotFoundException: processing.core.PApplet
- at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
- at java.security.AccessController.doPrivileged(Native Method)
- at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
- at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
- ... 12 more
core.jar
facebook_oauth_example.jar
facebook_oauth_example.java
facebook_oauth_example.pde
FacebookOAuth.pde
index.html
loading.gif
but i can't find the included jar files here (for example for the lobo browser) i added in the code folder from my sketch.
when the source code is needed i can provide it, but i think it is a linker problem or something more general then a wrong code.
regards,
peter
1