Skip to content

Instantly share code, notes, and snippets.

@dsdstudio
Created April 2, 2014 13:43
Show Gist options
  • Select an option

  • Save dsdstudio/9934419 to your computer and use it in GitHub Desktop.

Select an option

Save dsdstudio/9934419 to your computer and use it in GitHub Desktop.
OSX 에서 JAVA_HOME 잡을때 유용
bhkim@dsdstudio-MBP ~
 /usr/libexec/java_home -V
Matching Java Virtual Machines (4):
1.8.0, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home
1.7.0_17, x86_64: "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home
1.6.0_65-b14-462, x86_64: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
1.6.0_65-b14-462, i386: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment