aspose file tools*
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "Multiple JDK Watch "Multiple JDK New topic
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Multiple JDK's and JRE's
 
Similar Threads
Weird java message when executing through console.
JRE Located on Server
JDK 1.4 & Tomcat 4.x and JDK 1.6 & Tomact 6.x on production sever
String class can't find split method: wrong java version?
Compiling Java to Native Code