PDA

View Full Version : [ubuntu] Help me to run .JAR



Mr.TAEL
May 1st, 2010, 10:16 PM
Hey,

I want to run a JAR package. I'm using Ubuntu 10.04 with OpenJDK Java 6 Runtime/Web Start installed.

This is my JAR : http://dl.free.fr/pfvUO2S4U

Thanks a lot.

-Robert-
May 2nd, 2010, 01:22 AM
This should work: http://ubuntuforums.org/showthread.php?t=281932

Mr.TAEL
May 2nd, 2010, 01:35 AM
This should work: http://ubuntuforums.org/showthread.php?t=281932
I tried it. When I enter "java -jar ....", It says "Properties?". Also I entered "java ..." and it says:


Exception in thread "main" java.lang.NoClassDefFoundError: APJP/jar
Caused by: java.lang.ClassNotFoundException: APJP.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java: 217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 21)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 66)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:334)
Could not find the main class: APJP.jar. Program will exit.

Mr.TAEL
May 2nd, 2010, 10:26 PM
Bump! :rolleyes:

mechro
May 2nd, 2010, 11:37 PM
I think you're missing some files for this to run. There is a "PROPERTIES" file that needs configuring.

Does this link help?...

http://code.google.com/p/apjp/downloads/list