Mac OS X系统中Java安装

@ameizi 2015-01-16 05:08:52发表于 ameizi/DevArticles Mac

http://www.oracle.com/technetwork/cn/java/javase/downloads/jdk7-downloads-1880260.html

Mac OS X系统中Java安装

  • jdk 1.6
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
export PATH=$PATH:$JAVA_HOME/bin
  • jdk 1.7
export JAVA_HOME=/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
export PATH=$PATH:$JAVA_HOME/bin