File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Multiple JDK's and JRE's 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 » Java in General
Bookmark "Multiple JDK Watch "Multiple JDK New topic

Multiple JDK's and JRE's

Roberto Diaz
Ranch Hand

Joined: Mar 08, 2002
Posts: 40
How does one juggle between multiple JDK's and
JRE's on the same machine and same drive.
I guess what I am trying to figure out is how
do I get say application A to use JDK X OR JRE X and say application B to use JDK Y OR JRE Y ,
when both app. A and B are running at the same time OR when app. A is executed first and then
app. B is to be executed.
I hope it does make sense !!
TIA for all the responses.
Ravee Bhat
Ranch Hand

Joined: Nov 26, 1999
Posts: 72

Specifying path to the respective executables (i.e. java.exe) should do it.
Hope this helps.
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
You might also have to toggle the CLASSPATH setting.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Start your application using a .bat file or a .sh file and set the path and classpath that you want to use just before invoking that application.

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