Skip to content
Jacky Chan edited this page Feb 21, 2013 · 2 revisions

FAQ about jenv

How to install jdk 1.6.0_37 on OS X 10.8

 ln -s /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home ~/.jenv/candidates/java/1.6.0_37

The best way to integrate java into jenv on Mac

Use ln to link the java home into jenv as following:

   $ mkdir -p $HOME/.jenv/candidates/java
   $ ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/home $HOME/.jenv/candidates/java/1.7.0_13
   $ jenv list java