JVM version manager

前端 未结 6 1899
隐瞒了意图╮
隐瞒了意图╮ 2021-02-01 14:06

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

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-01 14:37

    If you use Ubuntu you can specify which JVM you want to use via command (works only for JVM installed from apt-get or aptitude)

    sudo update-alternatives --config java

    Or by setting JAVA_HOME. Here is good tutorial:

    http://vietpad.sourceforge.net/javaonlinux.html

提交回复
热议问题