Skip to content

Instantly share code, notes, and snippets.

@HungYuHei
Created November 1, 2011 15:43
Show Gist options
  • Select an option

  • Save HungYuHei/1330863 to your computer and use it in GitHub Desktop.

Select an option

Save HungYuHei/1330863 to your computer and use it in GitHub Desktop.
OpenJDK与SunJDK互相切换
查看系统提供的JDK版本信息
$ /usr/sbin/alternatives --config java
配置SunJDK
# /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_27/bin/java 2
# /usr/sbin/alternatives --config java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment