Page 1 of 1

Trouble with windows 7

Posted: Sun Mar 06, 2011 9:28 am
by Pettertombos
Hello

I'm having trouble with tokentool on windows 7 (I'm using windows 7 starter on a new dell netbook).

Downloaded tokentool along with the newest java.
Reinstalled java.
Restarted the PC alot of times in the process.

Any chance of having it working?

Re: Trouble with windows 7

Posted: Sun Mar 06, 2011 1:14 pm
by Phergus
Works 100% for me on Win7.

You haven't said what you are trying or what you see when you try it.

Re: Trouble with windows 7

Posted: Mon Mar 07, 2011 3:20 am
by Pettertombos
I'm just trying to open it! doubleklicking the file, nothing happends! At all

Re: Trouble with windows 7

Posted: Mon Mar 07, 2011 1:04 pm
by Azhrei
Sounds like your Java install is broken; it probably didn't update the PATH correctly.

Search the forum for Phergus' post regarding how to fix this.

Re: Trouble with windows 7

Posted: Mon Mar 07, 2011 8:00 pm
by Phergus
Pettertombos wrote:I'm just trying to open it! doubleklicking the file, nothing happends! At all
Open what? There isn't a file called "it" in the TokenTool zip distribution.

After you download the TokenTool zip file and extract it you should have one .jar file and a folder called lib. You don't care about lib except that it is there and has files in it.

The .jar file should be called tokentool-1.0.b28.jar and should display a little icon of the Sun/Oracle Java logo.

Image

If it doesn't your Java install is bad. Uninstall all versions of Java. Reboot. Then reinstall the 32-bit version of Java. Try again.

Re: Trouble with windows 7

Posted: Thu Jun 23, 2011 5:01 am
by daytripper
I'm having a similar problem. Files have extracted as Phergus describes, I double click the sun/java icon, I see a flash of script appear (way too quick to see what it is) then nothing. I've reinstalled java twice now but still nothing... any ideas. Maptool works fine.

Re: Trouble with windows 7

Posted: Fri Jun 24, 2011 3:21 am
by wolph42
open up a cmd prompt, and run the .jar file from there.
start-->in search box type:
cmd
goto the install directory (use
dir
and
cd <dir name>
to get there)
when your in the directory type:
tokentool-1.0.b28.jar
this time you'll see what is says. post the error message here.

edit: if you want to use copy paste, e.g. cd <paste the whole directory path> you can do that in the command prompt with a right mouse click and then click paste.

Re: Trouble with windows 7

Posted: Sun Jun 26, 2011 10:26 am
by daytripper
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.

Re: Trouble with windows 7

Posted: Fri Jan 06, 2012 9:16 am
by daytripper
So, anyone with any ideas on this one (see above)?

Re: Trouble with windows 7

Posted: Fri Jan 06, 2012 10:55 am
by jfrazierjr
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: Select all

cd "C:\Program Files\MapTools\Tokentool"
java -jar tokentool-1.0.b28.jar