Win a copy of Svelte and Sapper in Action this week in the JavaScript 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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
The reason I ask is because I'm trying to run a game that requires version 1.4.
Ranch Hand
Posts: 15304
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.
    Bookmark Topic Watch Topic
  • New Topic