Pocket Plane Group
Friends and Neighbors => Near Infinity => Topic started by: the bigg on September 11, 2006, 08:54:49 AM
-
should be a stupid question, but java being the POS it is...
vbigiani@vbigiani-laptop:~/NearInfinity$ java NIdigGen.jar
Exception in thread "main" java.lang.NoClassDefFoundError: NIdigGen.jar
at gnu.java.lang.MainThread.run(libgcj.so.7)
Caused by: java.lang.ClassNotFoundException: NIdigGen.jar not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.7)
at java.lang.ClassLoader.loadClass(libgcj.so.7)
at java.lang.ClassLoader.loadClass(libgcj.so.7)
at java.lang.Class.forName(libgcj.so.7)
at gnu.java.lang.MainThread.run(libgcj.so.7)
-
the command should be java -jar NIdigGen.jar
java XXXX tells it to use the file as a class, -jar tells it to explore for a MAIN.class in the jar and use the jar for classes referred to before going to the classpath.
-
Thanks, worked like a charm :)
Seriously, Linux needs a disadvantage when compared to Windows, otherwise mr. Bill would get poor very fast ;)