tags:

views:

47

answers:

2

Is there Ruby Version Manager equivalent for the Java world?

I'm looking for tool which allow me to easily download and install a new JVMs and switch between them. For example:

jvm install <version>
jvm list //will list installed JVMs on my system
jvm use jdk1.6 //will switch my env to jdk 1.6 version, etc.
+2  A: 

No. Without reverting to your OS package manager (yes, I'm thinking about apt-get), there is no such thing in the java world.

Riduidel
One could argue that your OS package monitor is already the best tool for this job.
matt b
A: 

With JVMs, if you need to switch between them you just need to use a batch file (or powershell script) to manage the classpath and JVM path. You don't need to rely on the system default JVM path (although 64-bit systems have a wierdness in this regard that I won't get into) and instead just allow your app to point to whatever JVM you like by changing classpath and JVM path environment in the shell that runs the JVM.

In this respect Java is way easier than "Ruby version manager".

djangofan