Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dumb JVM question

 
Alex McCormick
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
"active"??
The reason I ask is because I'm trying to run a game that requires version 1.4.
Thanks!!
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sloan Bowman
Ranch Hand
Posts: 107
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic