daytripper wrote:
Thanks to wolph42 for the techtips. This is my error message:
c:\Program Files\Maptools\Tokentool>tokentool-1.0.b28.jar
Exception in thread "main" java.lang.NoClassDefFoundError: C:\Program Files\Mapt
ools\Tokentool\tokentool-1/0/b28/jar
Caused by: java.lang.ClassNotFoundException: C:\Program Files\Maptools\Tokentool
\tokentool-1.0.b28.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: C:\Program Files\Maptools\Tokentool\tokentool-1.0
.b28.jar. Program will exit.
Well... given that it appears you are starting this from a command line, you did it wrong. You can't directly start a java program from the command line like that when it resides in a jar file. You MUST call it with the jave executable name, followed by -jar (to tell the java executable that you are starting from a jar file), followed by the jar file name, so, starting from a bar command prompt:
Code:
cd "C:\Program Files\MapTools\Tokentool"
java -jar tokentool-1.0.b28.jar