It's not a secret anymore!
The moose likes Beginning Java and the fly likes JRE version control Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JRE version control" Watch "JRE version control" New topic

JRE version control

Monty Ireland
Ranch Hand

Joined: Oct 03, 2000
Posts: 161
I made a big mistake by deleteing java from portions of the windows registry.
Now I need to fool windows and run one of three JRE versions.
How can I do this?
Any on-line documentations would be greatly appreciated.

Multi Platform Database Developer & DBA on E.S.T.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Make a bat file for each version that you may want to run. In this file define the path and classpath that you want to use right then.
Of course you will have to run one of these bat files EVERY time you start a session - but it does let you control which JRE that you are using.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: JRE version control
It's not a secret anymore!