This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Java in General and the fly likes Change JRE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Change JRE" Watch "Change JRE" New topic
Author

Change JRE

J. Ryan
Greenhorn

Joined: Jul 24, 2006
Posts: 21
Hi,

The program I'm writing needs to run using an older JRE installed on the client's machine. Is there some way to have Java use the older JRE without uninstalling the newer ones? Thanks.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31577
    
185

Yes. You can change the system PATH variable to point to the older version if you want everything on the machine to use the older JRE. If you just want one program to, you can use the full path when running the Java command.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
wood burning stoves
 
subject: Change JRE