File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes dumb JVM question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "dumb JVM question" Watch "dumb JVM question" New topic

dumb JVM question

Alex McCormick
Ranch Hand

Joined: Mar 08, 2003
Posts: 31
Hi everyone. According to my list of "removable programs" in Win98, I've got both versions 1.3_1 and 1.4_5 of the JRE installed on my machine. When I type java -version from the command line, it tells me that I'm using version 1.3. Is there a way to switch between the two, or do I have to actually un-install version 1.3 in order to make version 1.4
The reason I ask is because I'm trying to run a game that requires version 1.4.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Chances are you have a system PATH issue. if you type echo %path% at the command prompt, see which java/bin folder you have in there. I bet it is 1.3.
For a quick fix, just run the "java" command with an absolute path:
c:\pathtojava\bin\java classfile
Or you can adjust your path to point to the 1.4 version.
It's been too long for me and win98 so I don't remember how to change the path.

GenRocket - Experts at Building Test Data
Sloan Bowman
Ranch Hand

Joined: Jan 21, 2003
Posts: 107
You simply need to adjust your path variables in your autobat startup file. Make sure you have the JRE 1.4 in the path instead of the current 1.3. Also note that windows comes with java in the system or the system32 directory. If you rename this file to java.old it will use your runtime in your path. I hope this helps you out. I believe you can access your startup files with either the sysedit command or type msconfig. Good luck.
I agree. Here's the link:
subject: dumb JVM question
It's not a secret anymore!