installing the latest jdk7 for mac
scott.kovatch at oracle.com
Thu Mar 29 12:16:20 PDT 2012
On Mar 29, 2012, at 10:59 AM, Rick Hillegas wrote:
> I downloaded the latest installer from http://jdk7.java.net/macportpreview/ and then ran it. When I got to the step which was supposed to let me choose where to install the jdk, I did not see any control for configuring this location or any indication of where the files would be dropped. I continued with the installation, nonetheless. Afterward, I was not able to find the installation with this command:
> find / -name "*jdk1.7.0_04*"
> Any ideas about what I am doing wrong, how I can coax the installer into letting me choose a destination directory, and/or where the files were written? I am running Mac OSX 10.7.3 on a macbook pro.
The JDK must go into /Library/Java/JavaVirtualMachines. We do this because doing so will make it the default JDK for all of the command-line tools.
Why do you want to put it into a custom location? Java VMs on the Mac have been installed into this location for some time now.
I do have a to-do item to write up some instructions on how to verify that you have JDK 7 and that it is the default JDK, but just open up a Terminal window and type 'java -version'. /usr/libexec/java_home will tell you, too.
More information about the macosx-port-dev