Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

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

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Current Games From Matrix.] >> [World War II] >> War In The Pacific - Struggle Against Japan 1941 - 1945 >> [Solved] WitP related java programs not running from batch file Page: [1]
Login
Message << Older Topic   Newer Topic >>
[Solved] WitP related java programs not running from ba... - 3/16/2009 6:45:39 PM   
NickWright

 

Posts: 20
Joined: 3/11/2009
Status: offline
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!



< Message edited by NickWright -- 3/16/2009 6:47:01 PM >
Post #: 1
RE: [Solved] WitP related java programs not running fro... - 6/7/2009 1:04:24 AM   
kfmiller41


Posts: 1063
Joined: 3/25/2003
From: Saint Marys, Ga
Status: offline
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


_____________________________

You have the ability to arouse various emotions in me: please select carefully.

(in reply to NickWright)
Post #: 2
RE: [Solved] WitP related java programs not running fro... - 6/7/2009 1:08:55 AM   
kfmiller41


Posts: 1063
Joined: 3/25/2003
From: Saint Marys, Ga
Status: offline
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.

(in reply to kfmiller41)
Post #: 3
RE: [Solved] WitP related java programs not running fro... - 6/7/2009 3:00:02 AM   
floydg

 

Posts: 2052
Joined: 6/27/2004
From: Middletown, NJ
Status: offline
Yeah, this does seem like Java is working, but the WITP directory doesn't seem to be found.

(in reply to kfmiller41)
Post #: 4
Page:   [1]
All Forums >> [Current Games From Matrix.] >> [World War II] >> War In The Pacific - Struggle Against Japan 1941 - 1945 >> [Solved] WitP related java programs not running from batch file Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.828