| Author |
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
Sheriff
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"
Sheriff
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
|
 |
 |
|
|
subject: Multiple JDK's and JRE's
|
|
|