I have a Processing Applet that I need to start using c++ (basically i need to start it from the command line)
The thing is, I have developed this sketch in Eclipse IDE.
The error i get when i want to start the .class file from the command line is:
Exception in thread "main" java.lang.NoClassDefFoundError: ddf/minim/AudioListen
er
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Caused by: java.lang.ClassNotFoundException: ddf.minim.AudioListener
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 12 more
Could not find the main class: MainGestures. Program will exit.
I've set the classpath like this: java -cp path_to_my_project MainGestures and now i get this error:
Exception in thread "main" java.lang.NoClassDefFoundError: MainGestures
Caused by: java.lang.ClassNotFoundException: MainGestures
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: MainGestures. Program will exit.
I would really like your help.
thanks.
Edit:
I have resolved the NoClassDefFound Error. It seems i have forgotten a ; when setting the classpath.
Still, i get this message now:
>java -cp ..\minim.jar;..\core.jar; MainGestures
Usage: PApplet <appletname>
For additional options, see the Javadoc for PApplet