Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

dumb JVM question

 
Ranch Hand
Posts: 31
  • 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!!
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • 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.
 
Ranch Hand
Posts: 107
  • 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
Boost this thread!