[izpack-user] jar installation works in windows but fails in linux

16 views
Skip to first unread message

Isaac Perez

unread,
Jan 28, 2010, 5:15:15 AM1/28/10
to us...@izpack.codehaus.org

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


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

Kjell Braden

unread,
Jan 28, 2010, 5:56:37 AM1/28/10
to us...@izpack.codehaus.org
On 28.01.2010 11:15, Isaac Perez wrote:
>
> The output in Linux is:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> ///SSP/pjc/jar
> Caused by: java.lang.ClassNotFoundException: ...SSP.pjc.jar
[...]

> Could not find the main class: ../SSP.pjc.jar. Program will exit.
>


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

signature.asc

Isaac Perez

unread,
Jan 28, 2010, 6:01:21 AM1/28/10
to us...@izpack.codehaus.org
Doh!

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


Reply all
Reply to author
Forward
0 new messages