Associate
I've done a Java project using netbeans using the JDK1.5.
It builds and creates a jar file which runs fine on my pc.
However when I move it to the uni computers it doesn't work:
(The uni computers hav JDK1.4 installed with netbeans 5.0RC2, but they also have JRE1.5)
I get the following error
>java -jar CarHire.jar
------ Starting Client Mode ------
Exception in thread "main" java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group
at CarHire.Main.main(Main.java:29)
It creates the following in the dist directory
/dist/CarHire.jar
/dist/lib/swing-layout-1.0.jar
/dist/lib/AbsoluteLayout.jar
The jar runs fine on my pc.
Does anyone know how to get it to run?
It builds and creates a jar file which runs fine on my pc.
However when I move it to the uni computers it doesn't work:
(The uni computers hav JDK1.4 installed with netbeans 5.0RC2, but they also have JRE1.5)
I get the following error
>java -jar CarHire.jar
------ Starting Client Mode ------
Exception in thread "main" java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group
at CarHire.Main.main(Main.java:29)
It creates the following in the dist directory
/dist/CarHire.jar
/dist/lib/swing-layout-1.0.jar
/dist/lib/AbsoluteLayout.jar
The jar runs fine on my pc.
Does anyone know how to get it to run?