.Bat and Vista x64
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
Forum rules
Please discuss all HOWTO topics in the main forum. They will be moved here by a moderator when appropriate.
Please discuss all HOWTO topics in the main forum. They will be moved here by a moderator when appropriate.
-
- Great Wyrm
- Posts: 1343
- Joined: Sun Aug 12, 2007 10:49 am
- Location: Midsomer Norton, (Near Bath), UK
- Contact:
.Bat and Vista x64
Ok, for fun I thought I would try Vista x64 (though in my favor, I did make it a dual boot machine with XP)
Though not as bad as strapping your own legs to a chair and drilling holes in them it comes close at times in the list of things not to do 'for fun' (not that I have tried the former, but I did enjoy watching a surgeon do something similar to my shoulder on sat- though that was under a local anesthetic, but i digress).
The batch files don't work in Vista, I could spent the next several hours trying to figure out why, but I thought I would ask here first, and if no one knows, then I will go and work it out for my self and let you know.
Though not as bad as strapping your own legs to a chair and drilling holes in them it comes close at times in the list of things not to do 'for fun' (not that I have tried the former, but I did enjoy watching a surgeon do something similar to my shoulder on sat- though that was under a local anesthetic, but i digress).
The batch files don't work in Vista, I could spent the next several hours trying to figure out why, but I thought I would ask here first, and if no one knows, then I will go and work it out for my self and let you know.
Cweord
This message has been spell checked by Freudcheck - any mistakes are purley a figment of your imagination.
-------
My Tokens Directory
http://gallery.rptools.net/v/contrib/Cw ... er_Tokens/
This message has been spell checked by Freudcheck - any mistakes are purley a figment of your imagination.
-------
My Tokens Directory
http://gallery.rptools.net/v/contrib/Cw ... er_Tokens/
-
- Great Wyrm
- Posts: 1343
- Joined: Sun Aug 12, 2007 10:49 am
- Location: Midsomer Norton, (Near Bath), UK
- Contact:
'javaw' is not recognized as an internal or external command, operable program or batch file.
But if I open MT direct with out a batch file it runs, so Java is ok . . . .
But if I open MT direct with out a batch file it runs, so Java is ok . . . .
Cweord
This message has been spell checked by Freudcheck - any mistakes are purley a figment of your imagination.
-------
My Tokens Directory
http://gallery.rptools.net/v/contrib/Cw ... er_Tokens/
This message has been spell checked by Freudcheck - any mistakes are purley a figment of your imagination.
-------
My Tokens Directory
http://gallery.rptools.net/v/contrib/Cw ... er_Tokens/
-
- Great Wyrm
- Posts: 1343
- Joined: Sun Aug 12, 2007 10:49 am
- Location: Midsomer Norton, (Near Bath), UK
- Contact:
Same thing
Cweord
This message has been spell checked by Freudcheck - any mistakes are purley a figment of your imagination.
-------
My Tokens Directory
http://gallery.rptools.net/v/contrib/Cw ... er_Tokens/
This message has been spell checked by Freudcheck - any mistakes are purley a figment of your imagination.
-------
My Tokens Directory
http://gallery.rptools.net/v/contrib/Cw ... er_Tokens/
OK, I know what is going on. I tested it and like Cweord has stated, it doesn't work. I too am running Vista X64.
The cause:
The Windows path isn't pointing to the Java folder. If you were to go to a command prompt and type in: Java -version Windows would come back not knowing what in the heck you just typed in.
The fix:
Go into the Windows System Variables and add the Java path to the path line.
1. Click on the start button
2. Right click on Computer and select Properties.
3. Click on Advanced System Settings (and continue through all the Wndows warnings)
4. Click on the Environment Variables button.
5. Go into the System Variables section and edit the Path line.
6. Add the path to the path statement. (!do not erase what is in there!)
In my case I appended the following but your version could be different depending on the java version installed:
;c:\program files <x86>\java\jre1.6.0_03\bin;
Notable Mention:
I did notice there is no longer a Java icon in Control Panel. The only way I could figure out how to get into the Java Control Panel was to run an app that forced the java icon to appear in the systray, right click on it and go into the Java Control Panel. I did notice that the environment variables are all set correctly in there so I am unsure why we need to manually add these variables into the windows systems variables. *shrug*
Hey Trevor, do you think any other variables are needed?
The cause:
The Windows path isn't pointing to the Java folder. If you were to go to a command prompt and type in: Java -version Windows would come back not knowing what in the heck you just typed in.
The fix:
Go into the Windows System Variables and add the Java path to the path line.
1. Click on the start button
2. Right click on Computer and select Properties.
3. Click on Advanced System Settings (and continue through all the Wndows warnings)
4. Click on the Environment Variables button.
5. Go into the System Variables section and edit the Path line.
6. Add the path to the path statement. (!do not erase what is in there!)
In my case I appended the following but your version could be different depending on the java version installed:
;c:\program files <x86>\java\jre1.6.0_03\bin;
Notable Mention:
I did notice there is no longer a Java icon in Control Panel. The only way I could figure out how to get into the Java Control Panel was to run an app that forced the java icon to appear in the systray, right click on it and go into the Java Control Panel. I did notice that the environment variables are all set correctly in there so I am unsure why we need to manually add these variables into the windows systems variables. *shrug*
Hey Trevor, do you think any other variables are needed?
Last edited by dorpond on Wed Nov 14, 2007 3:41 pm, edited 1 time in total.
How to use my bundled artwork (MT1.3B60+): http://forums.rptools.net/viewtopic.php?f=8&t=11759
-
- Great Wyrm
- Posts: 1343
- Joined: Sun Aug 12, 2007 10:49 am
- Location: Midsomer Norton, (Near Bath), UK
- Contact:
It's not the security settings I have already turned all that off, and I put in the path, and nothing changed (though the path is now in) there are also 2 other java paths in the environmental variables.
I tried it wish both Java and Javaw, still nothing . . .
it's not killing me because I can go back to XP and I don't use this machine for gaming, but it's strange
I tried it wish both Java and Javaw, still nothing . . .
it's not killing me because I can go back to XP and I don't use this machine for gaming, but it's strange
Cweord
This message has been spell checked by Freudcheck - any mistakes are purley a figment of your imagination.
-------
My Tokens Directory
http://gallery.rptools.net/v/contrib/Cw ... er_Tokens/
This message has been spell checked by Freudcheck - any mistakes are purley a figment of your imagination.
-------
My Tokens Directory
http://gallery.rptools.net/v/contrib/Cw ... er_Tokens/
Well let's try to figure it out so that we can help others who come along
First things first - what version of Maptool? I fixed my issue above but I was running 1.2. I haven't tried 1.3 yet but will tomorrow AM.
Also, go to a command prompt - type in Java -version
What do you get?
You unzipped the maptool zip file to a folder, right? Silly question but some people have actually gone into the zip file and tried to run the batch files without extracting the files first.
Let's start there first.
First things first - what version of Maptool? I fixed my issue above but I was running 1.2. I haven't tried 1.3 yet but will tomorrow AM.
Also, go to a command prompt - type in Java -version
What do you get?
You unzipped the maptool zip file to a folder, right? Silly question but some people have actually gone into the zip file and tried to run the batch files without extracting the files first.
Let's start there first.
How to use my bundled artwork (MT1.3B60+): http://forums.rptools.net/viewtopic.php?f=8&t=11759
This is caused by your OS being 64bit instead of 32. I had the same issue with XP x64, as well as a player in my group who was running the same. This is because java is installed in the (x86) version of program files instead of the normal path. However, it seems the java installer is not smart enough to add the right path to the OS, using the normal program files directory. This is all assumption on my part, but seems to make sense.
To fix it, either do what was suggested by adding the path command stuff to your system or just search for and copy (not drag) the javaw.exe file into the maptools program directory (what I did). The .bat file should run as normal.
*Note if you update java you will have to copy the "new" javaw.exe file into the program directory as the install will not automatically update it.
Also, to find the java group in control panel in 64bit windows you have to open the "View x86 Control Panel Icons" folder inside of Control Panel. This is under the "See Also" tab if you are running category view, or in the normal icon window if running in classic.
Hope this helps!
To fix it, either do what was suggested by adding the path command stuff to your system or just search for and copy (not drag) the javaw.exe file into the maptools program directory (what I did). The .bat file should run as normal.
*Note if you update java you will have to copy the "new" javaw.exe file into the program directory as the install will not automatically update it.
Also, to find the java group in control panel in 64bit windows you have to open the "View x86 Control Panel Icons" folder inside of Control Panel. This is under the "See Also" tab if you are running category view, or in the normal icon window if running in classic.
Hope this helps!
-
- Great Wyrm
- Posts: 1343
- Joined: Sun Aug 12, 2007 10:49 am
- Location: Midsomer Norton, (Near Bath), UK
- Contact:
That worked, I'm annoyed I didn't think of it my self . . . .CJack42 wrote:Copy (not drag) the javaw.exe file into the maptools program directory (what I did). The .bat file should run as normal.
For other reference, I have tried the last few builds, and prior to the change non worked, it worked fine after copying javaw to the install folder.
Current build is 3.19
Maptools is unzipped to a folder.
Who knows what is happening with the paths, there are 3 different paths that reference Java in environmental variables, but I reckon until it's fixed, the quickest way to solve the problem is to copy Javaw over each time Java is updated.
Cweord
This message has been spell checked by Freudcheck - any mistakes are purley a figment of your imagination.
-------
My Tokens Directory
http://gallery.rptools.net/v/contrib/Cw ... er_Tokens/
This message has been spell checked by Freudcheck - any mistakes are purley a figment of your imagination.
-------
My Tokens Directory
http://gallery.rptools.net/v/contrib/Cw ... er_Tokens/