Hi,
I’ve just finished my first installer and is working great in windows, but not in Linux.
It seems I need to add some java classes, not sure which files will contain them, though. As I didn’t use anything special in the installer.
The output in Linux is:
Exception in thread "main" java.lang.NoClassDefFoundError: ///SSP/pjc/jar
Caused by: java.lang.ClassNotFoundException: ...SSP.pjc.jar
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: ../SSP.pjc.jar. Program will exit.
Should I compile it in Linux to make it work? Or should it work in both platforms no matter in which one I compiled it with?
Thanks,
Isaac
Hi Isaac,
what was the command you ran? It looks like you used:
$ java ../SSP.pjc.jar
For running .jar files you need to type in:
$ java -jar ../SSP.pjc.jar
Note that this has nothing to do with Linux - this is the same for
windows and any other platform.
HTH
-Kjell
Thanks Kjell, that's the problem of double clicking in windows.....
At least in was a lot easier to solve than I thought :-)
Cheers,
Isaac
Hi Isaac,
$ java ../SSP.pjc.jar
$ java -jar ../SSP.pjc.jar
HTH
-Kjell
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email