unable to launch Tokentool

Thoughts, Help, Feature Requests

Moderators: dorpond, trevor, Azhrei

Post Reply
dwarsh
Kobold
Posts: 2
Joined: Mon Feb 01, 2010 10:12 pm

unable to launch Tokentool

Post by dwarsh »

I have no trouble with maptool, initiativetool, dice tool or character tool, but I cannot get tokentool 1.0.b28 to launch, either with the quick launch or with the downloaded tool. I am running java 1.5 18 on windows XP.

with the downloaded tool, I get no message, and nothing happens even after several minutes (the other apps load very quickly).

with quick launch, I get a "unable to lauch application" error.

the details are:

launch file:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.5+" codebase="http://download.rptools.net/">
<information>
<title>RPTools TokenTool</title>
<vendor>http://download.rptools.net/</vendor>
<icon href="http://www.rptools.net/images/logo/RPTo ... go_403.png" width="403" height="403"/>
<icon href="http://www.rptools.net/images/logo/RPTo ... go_242.png" width="242" height="242"/>
<icon href="http://www.rptools.net/images/logo/RPTo ... ogo_64.png" width="64" height="64" kind="splash"/>
<icon href="http://www.rptools.net/images/logo/RPTo ... ogo_48.png" width="48" height="48"/>
<icon href="http://www.rptools.net/images/logo/RPTo ... ogo_32.png" width="32" height="32"/>
<icon href="http://www.rptools.net/images/logo/RPTo ... ogo_16.png" width="16" height="16"/>
<offline-allowed/>
<shortcut online="false">
<desktop />
<menu submenu="RPTools" />
</shortcut>
</information>

<security>
<all-permissions />
</security>

<resources>
<!-- Yes, the heap sizes are redundant. But it seems to fix
some kind of new weirdness with the Apple JVM on Leopard. :( -->
<j2se version="1.5+"
initial-heap-size="64m"
max-heap-size="512m"
java-vm-args="-Xmx512m -Xms64m -Xss2m"/>
<jar href="lib.php/tokentool-1.0.b28.jar" />
<jar href="lib.php/abeille-formsrt-2.0.jar" />
<jar href="lib.php/rplib-1.0.b87.jar" />
<jar href="lib.php/tinylaf.jar" />
</resources>
<application-desc main-class="net.rptools.tokentool.TokenTool">
<argument>${java.launch.args}</argument>
</application-desc>
</jnlp>


exception:
java.lang.NullPointerException
at net.rptools.tokentool.AppSetup.install(AppSetup.java:47)
at net.rptools.tokentool.TokenTool.main(TokenTool.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


any ideas?

thanks!

dwarsh
Kobold
Posts: 2
Joined: Mon Feb 01, 2010 10:12 pm

Re: unable to launch Tokentool

Post by dwarsh »

I just managed to solve it.
Just in case someone else has this problem, the issue was ownership of the .tokentool folder, which somehow was restricted to the administrator. I have to boot in safe mode and delete the folder, then the quick launch app was able to write a new folder and launch.

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: unable to launch Tokentool

Post by Azhrei »

Wow, I'm glad you found that because I had no clue what was going on... :roll:

dunlaing
Kobold
Posts: 9
Joined: Wed Jun 25, 2008 11:03 am

Re: unable to launch Tokentool

Post by dunlaing »

I'm having the same problem.

Where do I find this ".tokentool" folder?

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: unable to launch Tokentool

Post by Full Bleed »

dunlaing wrote:I'm having the same problem.

Where do I find this ".tokentool" folder?
What OS are you using?

In XP it's under:

Documents and Settings\User Name\

In Vista/Win7:

Users\User Name\
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

dunlaing
Kobold
Posts: 9
Joined: Wed Jun 25, 2008 11:03 am

Re: unable to launch Tokentool

Post by dunlaing »

Windows 7

Deleting that folder didn't do anything for me though. It still isn't working. Oh well.

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: unable to launch Tokentool

Post by Full Bleed »

dunlaing wrote:Windows 7

Deleting that folder didn't do anything for me though. It still isn't working. Oh well.
What version of java do you have installed?

Deleting the folder isn't the solution. It just sounds like the user above was able to launch the webstart application but not manually install it for some strange reason... I'd guess it was a permissions issue, but XP shouldn't have had permissions issues.
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

User avatar
Dark Thoughts
Giant
Posts: 134
Joined: Sat Feb 02, 2008 1:20 am

Re: unable to launch Tokentool

Post by Dark Thoughts »

I must be missing something obvious.

I've downloaded TokenTool V.1.0.B28 to my Windows 7 machine and extracted the zipped files.

After extraction, I am left with:

lib.file folder
tokentool-1.0.b28.WinRAR Archive

The tokentool-1.0.b28.WinRAR archive contains:
MetaINF.folder
net.folder

I've looked in all the folders but failed to locate an executable for TokenTool.

I also have Java V.1.6.21 on my machine, if that helps.

Can you guys tell me what I'm overlooking?

User avatar
jfrazierjr
Deity
Posts: 5176
Joined: Tue Sep 11, 2007 7:31 pm

Re: unable to launch Tokentool

Post by jfrazierjr »

Dark Thoughts wrote:I must be missing something obvious.

I've downloaded TokenTool V.1.0.B28 to my Windows 7 machine and extracted the zipped files.

After extraction, I am left with:

lib.file folder
tokentool-1.0.b28.WinRAR Archive

The tokentool-1.0.b28.WinRAR archive contains:
MetaINF.folder
net.folder

I've looked in all the folders but failed to locate an executable for TokenTool.

I also have Java V.1.6.21 on my machine, if that helps.

Can you guys tell me what I'm overlooking?
First, java applications don't have an executable file(well... except for maptool, but thats just a wrapper that just calls java). You have to launch Java and tell it to open the token tool. Since there are no launcher scripts included with token tool as there are with maptool, you will have to either create one manually or launch java/token tool from the command line. You will need to put the lib folder and the tokentool jar file somewhere (create a new folder for it if you like). then from the command line change to that folder and run the java exe.

Code: Select all

cd  c:\folderyoucreated\ [ENTER]
java -jar tokentool*.jar
Second, once you open the zip file, if should contain 4 files, and they all must end with .jar.
I save all my Campaign Files to DropBox. Not only can I access a campaign file from pretty much any OS that will run Maptool(Win,OSX, linux), but each file is versioned, so if something goes crazy wild, I can always roll back to a previous version of the same file.

Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..

Phergus
Deity
Posts: 7132
Joined: Fri May 12, 2006 8:56 pm
Location: Middle of Nowhere, NM
Contact:

Re: unable to launch Tokentool

Post by Phergus »

What you are overlooking is that you are using that POS WinRAR which in its usual stupid fracking way has corrupted your system such that it doesn't handle the Java JAR files correctly.

You should be able to just double-click on the TokenTool jar file and have it run.

User avatar
Dark Thoughts
Giant
Posts: 134
Joined: Sat Feb 02, 2008 1:20 am

Re: unable to launch Tokentool

Post by Dark Thoughts »

Yep, I removed WinRAR and everything worked fine. Honestly I don't remember exactly why I still had it on my system. I downloaded something once that required it to be unzipped but that was ages ago. Now I know that if the need arises again, to dump it as soon as possible.

Thanks for the help guys. :)

Phergus
Deity
Posts: 7132
Joined: Fri May 12, 2006 8:56 pm
Location: Middle of Nowhere, NM
Contact:

Re: unable to launch Tokentool

Post by Phergus »

Glad you got it working!

If you need to a tool that can handle RAR files get 7-Zip.

http://www.7-zip.org/

User avatar
Dark Thoughts
Giant
Posts: 134
Joined: Sat Feb 02, 2008 1:20 am

Re: unable to launch Tokentool

Post by Dark Thoughts »

Thanks for the tip. :)

Post Reply

Return to “TokenTool”