[Solved] WitP related java programs not running from batch file

Gary Grigsby's strategic level wargame covering the entire War in the Pacific from 1941 to 1945 or beyond.

Moderators: Joel Billings, wdolson, Don Bowen, mogami

Post Reply
NickWright
Posts: 20
Joined: Wed Mar 11, 2009 1:26 pm

[Solved] WitP related java programs not running from batch file

Post by NickWright »

Hello everybody. Initially when I downloaded a couple of applications found here on the forums (like WitP tracker) I couldn't run them from the ".bat" file that was written for them. I've got a solution/fix that others might find helpful, so I'm putting it up here. If the mods think this is the wrong sub-forum, then please feel free to (re)move it.

Specifically, using Vista x64, when I tried to run the batch files I got a "Unknown command/filename" type of error. Here's how to fix it!

1) Right click on My Computer, on the desktop

2) Once the computer properties menu has opened, click on the Advanced System Settings button

3) Click on the Environment Variables button

4) Under the Systems Variables box, click the NEW button to create a new variable

5) Enter the following inside the dialog
Variable Name: JAVA_HOME
Variable Value: the folder containing the java installation for example C:\Program Files (x86)\Java\jre6 or C:\Program Files\Java\jre6

7) In the system variables list (the bottom one), locate the entry called Path, select it then press Edit

8) In the second box called Variable Value, go to the very end and add a semicolon ; if there isn't one there already

9) After your new semicolon, add %JAVA_HOME%\bin;

10) Press OK/Apply until all of the windows have closed

11) To test it's worked, open Run... in the start menu and type in Cmd

12) The windows command line interface should open, now type Java -version

If you typed in all this correctly, then it should report the version of java you've got installed. You can now run WitP tracker and WitPDecoder from their batch files!

Hopefully somebody will find this helpful!

User avatar
kfmiller41
Posts: 1063
Joined: Tue Mar 25, 2003 9:00 pm
Location: Saint Marys, Ga
Contact:

RE: [Solved] WitP related java programs not running from batch file

Post by kfmiller41 »

Now I am getting a message saying that it can't find the Directory? I checked it three times and the directory is correct C:\Matrix Games\CHS\War in the Pacific

What the hell is going on here? Is this just Vista64 or am i a dunce, which is more likely[:D]
You have the ability to arouse various emotions in me: please select carefully.
User avatar
kfmiller41
Posts: 1063
Joined: Tue Mar 25, 2003 9:00 pm
Location: Saint Marys, Ga
Contact:

RE: [Solved] WitP related java programs not running from batch file

Post by kfmiller41 »

Doesn't work on any of my installs, says it can't find the directory and it seems that now Java is working but it still doesn't help me
You have the ability to arouse various emotions in me: please select carefully.
floydg
Posts: 2060
Joined: Sat Jun 26, 2004 10:08 pm
Location: Middletown, NJ

RE: [Solved] WitP related java programs not running from batch file

Post by floydg »

Yeah, this does seem like Java is working, but the WITP directory doesn't seem to be found.
Delete the trackerdb.* files.
Copy the pwsdll.dll file from the game folder to the WitPTracker folder.
Try running the WitPTracker.bat again.
Post Reply

Return to “War In The Pacific - Struggle Against Japan 1941 - 1945”