Problem to run a scketch with java client
in
Integration and Hardware
•
2 years ago
Hi friends,
I have a problem for run an exported sketch.
When I use the RUN or PRESENT option in Processing editor the sketch runs well.
When I export and open the index.htm in the applet folder the sketch runs well too.
But if i try to run the .jar of proyect.pde skecth from command line: "java -jar proyect.jar"
Return an error:
"Excetion in thread "main" java.lang.NoclassDefFoundError: processing/core/PApplet
at java.lang.lang.ClassLoader.defineClass1(Native Method)
at java.lang.lang.ClassLoader.defineClassCond(Unkwon Source)
at java.lang.lang.ClassLoader.defineClass(Unkwon 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.lang.ClassLoader.loadClass(Unkwon Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.lang.ClassLoader.loadClass(Unkwon Source)
Caused by: java.land.ClassNotFoundException: processing.core.PApplet
at: java.net.URLClassLoader$1.run(Unknown Source)
at: java.security.AccessController doPrivileged(Native Method)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.lang.lang.ClassLoader.loadClass(Unkwon Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.lang.ClassLoader.loadClass(Unkwon Source)
... 12 more
Could not find the main class: proyect. Program will exit
In this sketch i use th e Minim sound lib, link command for access to a webpage, the comand saveframe and the basic image manipulation.
The case is that i have another simple.pde sketch that no use Minim lib, link command, saveframes and can run it from command line "java -jar simple.jar" and work fine.
I don't know what is the problem.
I'm use a windows XP, processing 0192 & java runtime env. (build 1.6.0_24-b07) Client VM (build 19.1-b02)
I appreciate your help
I have a problem for run an exported sketch.
When I use the RUN or PRESENT option in Processing editor the sketch runs well.
When I export and open the index.htm in the applet folder the sketch runs well too.
But if i try to run the .jar of proyect.pde skecth from command line: "java -jar proyect.jar"
Return an error:
"Excetion in thread "main" java.lang.NoclassDefFoundError: processing/core/PApplet
at java.lang.lang.ClassLoader.defineClass1(Native Method)
at java.lang.lang.ClassLoader.defineClassCond(Unkwon Source)
at java.lang.lang.ClassLoader.defineClass(Unkwon 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.lang.ClassLoader.loadClass(Unkwon Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.lang.ClassLoader.loadClass(Unkwon Source)
Caused by: java.land.ClassNotFoundException: processing.core.PApplet
at: java.net.URLClassLoader$1.run(Unknown Source)
at: java.security.AccessController doPrivileged(Native Method)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.lang.lang.ClassLoader.loadClass(Unkwon Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.lang.ClassLoader.loadClass(Unkwon Source)
... 12 more
Could not find the main class: proyect. Program will exit
In this sketch i use th e Minim sound lib, link command for access to a webpage, the comand saveframe and the basic image manipulation.
The case is that i have another simple.pde sketch that no use Minim lib, link command, saveframes and can run it from command line "java -jar simple.jar" and work fine.
I don't know what is the problem.
I'm use a windows XP, processing 0192 & java runtime env. (build 1.6.0_24-b07) Client VM (build 19.1-b02)
I appreciate your help
1