RPTools.net

Discussion and Support

Skip to content

It is currently Mon Oct 16, 2017 9:12 pm 






Reply to topic  [ 8 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Dragon
 
Joined: Wed Oct 19, 2011 1:07 am
Posts: 958
 Post subject: command line TokenTool
PostPosted: Wed Nov 23, 2011 6:00 am 
hello,

I somehow did something along the way and now tokentool (the latest one) won't start. i tried setting its default launcher to java, javaw, javaws but all return an error saying the main class could not be found. I cracked open the jar file and couldn't find it either though I think this is normal. I'd like to ask if there is a certain command line I should use in order to jumpstart the tool. Thanks :)

Edit: Perusing this forum a bit more, it seems I'm in the same boat as the last poster in this topic. Not knowing about the details of TT implementation, I'm at an impasse as to how to troubleshoot this. MT works just fine btw.

_________________
My stuff for the community:
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri May 12, 2006 7:56 pm
Posts: 6300
Location: Las Cruces, NM
 Post subject: Re: command line TokenTool
PostPosted: Wed Nov 23, 2011 8:52 am 
Are you saying that you got the same error message on the command line?

When you type in "java -version" on the command line what do you get?

If it was working and then stopped, what changed on your system?

_________________
Call me, Hex Boy.

Visit http://www.darkisle.com for photos of castles, cairns, standing stones, and other ancient sites in the British Isles.


Top
 Profile  
 
 Offline
Dragon
 
Joined: Wed Oct 19, 2011 1:07 am
Posts: 958
 Post subject: Re: command line TokenTool
PostPosted: Wed Nov 23, 2011 10:59 am 
I had to fix my path to the JRE. After that was done, java - version returns

java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing)


Running the TT jar from the command prompt returns

Could not find main class...(path to the jar)

Doing java TT.jar returns:

Exception in thread "main" java.lang.NoClassDefFoundError: tt/jar
Caused by: java.lang.ClassNotFoundException: tt.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: tt.jar. Program will exit.


I can't put my finger on what I changed. I've been working with MT exclusively for a month now. The last time I used TT was to create character tokens for my players. The only JRE I have left in the system is the jre6. I cleaned out jre7 but tokentool still functioned back then after the removal. Thanks.

Edit: I re-installed jre6 and got the webstart version of TT working. Standalone TT still returns the same error though and I've tried using a new extract downloaded from rptools.net.

_________________
My stuff for the community:
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri May 12, 2006 7:56 pm
Posts: 6300
Location: Las Cruces, NM
 Post subject: Re: command line TokenTool
PostPosted: Wed Nov 23, 2011 3:22 pm 
Lee wrote:
Doing java TT.jar returns:

Exception in thread "main" java.lang.NoClassDefFoundError: tt/jar
Caused by: java.lang.ClassNotFoundException: tt.jar
...
Could not find the main class: tt.jar. Program will exit.

Not quite the right command.

Code:
javaw -jar tokentool-1.0.b28.jar


Any shortcut you had created would have to do the same thing.

If it won't start by double-clicking on the jar file then something has messed up the file association for .jar files.

_________________
Call me, Hex Boy.

Visit http://www.darkisle.com for photos of castles, cairns, standing stones, and other ancient sites in the British Isles.


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12101
Location: Tampa, FL
 Post subject: Re: command line TokenTool
PostPosted: Wed Nov 23, 2011 3:31 pm 
Well, the command line version should be java -jar TT.jar but it sounds like you tried that.

Since the main() function is in there, it must be either a command line issue or a Java installation issue.

And now that you've got the Web Start version working, it's clearly not a Java install issue (at least, not now). ;)


Top
 Profile  
 
 Offline
Dragon
 
Joined: Wed Oct 19, 2011 1:07 am
Posts: 958
 Post subject: Re: command line TokenTool
PostPosted: Wed Nov 23, 2011 8:22 pm 
Thank you Phergus and Azhrei. After some insights stemming from your suggestions, I got TT standalone to run again. File associations were a mess indeed, and I did forget the -jar switch on the latter tries. Great help as always. This community is probably the best I've ever been part of with regard to spot on help :)

_________________
My stuff for the community:
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri May 12, 2006 7:56 pm
Posts: 6300
Location: Las Cruces, NM
 Post subject: Re: command line TokenTool
PostPosted: Wed Nov 23, 2011 10:57 pm 
Glad you got it worked out!

_________________
Call me, Hex Boy.

Visit http://www.darkisle.com for photos of castles, cairns, standing stones, and other ancient sites in the British Isles.


Top
 Profile  
 
 Offline
Great Wyrm
 
Joined: Tue May 26, 2009 7:51 pm
Posts: 2060
Location: Philadelphia, PA
 Post subject: Re: command line TokenTool
PostPosted: Tue Dec 27, 2011 4:22 pm 
I made a batch file to start TokenTool:

Code:
"C:\Program Files\Java\jre6\bin\javaw" -Xmx128M -jar tokentool-*.jar run

_________________
Image
Time-Zone information UTC -5


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 8 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 3 guests





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman