• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple JDK's and JRE's

 
Roberto Diaz
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 72
Eclipse IDE Firefox Browser Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Specifying path to the respective executables (i.e. java.exe) should do it.
Hope this helps.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might also have to toggle the CLASSPATH setting.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic