Exporting processing project from Eclipse - PApplet / core.jar exception
in
Programming Questions
•
2 years ago
Hi All,
I am trying to deploy a web app made of both java and processing, through the Eclipse IDE.
These are the steps that i take:
1. Create a folder for deployment
2. Go to Eclipse, right-click, export the folder as a JAR file to the designated folder
3. Sign the applet (according to
http://wiki.processing.org/w/Sign_an_Applet)
4. Create a JNLP file to launch the app through a URL through the browser.
Now, the result is that I get the same error over and over again. I have even tried with Proclipsing, exported a very very simple OpenGL project, and the same exception gets thrown. Check it out here:
- 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 com.sun.jnlp.JNLPClassLoader.findClass(JNLPClassLoader.java:332)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
- at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1563)
- at com.sun.javaws.Launcher.run(Launcher.java:138)
- at java.lang.Thread.run(Thread.java:680)
- 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 com.sun.jnlp.JNLPClassLoader.findClass(JNLPClassLoader.java:332)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
- ... 15 more
So basically my exported JAR already contains the core.jar............ what am I doing wrong? And is this a bug? Can it be fixed?
Help is very much appreciated!!
thanks,
Dave
Mac OS X 10.6.4 + Eclipse 3.6.1 + Java SE 1.6 & Processing 1.2.1. + loads of coffe.
1