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)
the i downloaded the lobo-distro-0.98.4 from the website, because i didn't know where else to find the jar he included.
then i created a folder named lobobrowser under my libraries folder in my sketch folder an placed the lobo.jar into it (i need the package org.lobobrowser.main), then renamed it into lobobrowser.jar. the same i did with the lobo-pub.jar from the zip (i need the package org.lobobrowser.ua which is located in the public api). i also added the extension folder from the zip file into the lobobrowser lib folder in my sketch folder.
my sketch folder looks like this:
libraries
|_lobobrowser
|_library
|_ext
|_ ...
|_lobobrowser.jar
|_lobobrowserpub
|_library
|_lobobrowserpub.jar
and the includes like this:
import org.lobobrowser.gui.*;
import org.lobobrowser.main.*;
import org.lobobrowser.ua.*;
when i execute the sketch from the post i mentioned (with minor include changes), the browser window appears i can enter my facebook information and get the accesstoken,
but also i get a bunch of errors, because lob is missing the extensions: