Hi Leute,
folgendes Problem.
ich hab ein Java-Proggi als jar gepackt. Es ist sowohl als applet als auch als application ausführbar.
- Das Applet ist Ausführbar
- In Eclipse ist es sowohl als Applet als auch als Application ausführbar
- über die cmd mit "java -jar Jarname.jar" kann ich es aber nicht ausführen...
Der Fehler:
Exception JSException not found:
ich habe die plugin.jar ins jar eingefügt und mein manifest besteht unter anderem aus "Class-Path: plugin.jar"
Could not find the main class:
"Main-Class: src.LCSmain" steht im Manifest ebenfalls drin
Hat jemand eine Idee was ich falsch mache?
Eine Idee die mir jetzt gerade kommt...wenn man das jar als applet in eine Seite einbindet muss man ja MAYSCRIPT setzen...kann es etwas ähnliches für die Applikation brauchen?
(Besonders blöd: Ich verwende eigentlich die JS-Kommunikation nicht mal wenn es nicht als Applet rennt)
Ich hoffe jemand hat einen Tipp!
lg Andi
folgendes Problem.
ich hab ein Java-Proggi als jar gepackt. Es ist sowohl als applet als auch als application ausführbar.
- Das Applet ist Ausführbar
- In Eclipse ist es sowohl als Applet als auch als Application ausführbar
- über die cmd mit "java -jar Jarname.jar" kann ich es aber nicht ausführen...
Der Fehler:
Code:
Exception in thread "main" java.lang.NoClassDefFoundError: netscape/javascript/JSException
Caused by: java.lang.ClassNotFoundException: netscape.javascript.JSException
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: src.LCSmain. Program will exit.
Exception JSException not found:
ich habe die plugin.jar ins jar eingefügt und mein manifest besteht unter anderem aus "Class-Path: plugin.jar"
Could not find the main class:
"Main-Class: src.LCSmain" steht im Manifest ebenfalls drin
Hat jemand eine Idee was ich falsch mache?
Eine Idee die mir jetzt gerade kommt...wenn man das jar als applet in eine Seite einbindet muss man ja MAYSCRIPT setzen...kann es etwas ähnliches für die Applikation brauchen?
(Besonders blöd: Ich verwende eigentlich die JS-Kommunikation nicht mal wenn es nicht als Applet rennt)
Ich hoffe jemand hat einen Tipp!
lg Andi