Pocket Plane Group

Friends and Neighbors => Near Infinity => Topic started by: the bigg on September 11, 2006, 08:54:49 AM

Title: How do I run NI/NIDigGen in Linux?
Post by: the bigg on September 11, 2006, 08:54:49 AM
should be a stupid question, but java being the POS it is...

Code: [Select]
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)
Title: Re: How do I run NI/NIDigGen in Linux?
Post by: WizWom on September 11, 2006, 10:23:04 AM
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.
Title: Re: How do I run NI/NIDigGen in Linux?
Post by: the bigg on September 11, 2006, 10:41:56 AM
Thanks, worked like a charm  :)
Seriously, Linux needs a disadvantage when compared to Windows, otherwise mr. Bill would get poor very fast  ;)