OpenJDK 64-Bit Server VM (build 21.0-b03, mixed mode) OpenJDK 64-Bit Server VM (build 21.0-b03, mixed mode) /System/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/bin/java -version Then type ‘java -version’ against the above installation /System/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/bin/java -version The output of the above should be: /System/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home /System/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home The easiest way to make confirm that Java 7 is successfully installed is: /usr/libexec/java_home -version 1.7 /usr/libexec/java_home -version 1.7 Mkdir -p /System/Library/Java/JavaVirtualMachinesĬp -R build/macosx-universal/j2sdk-bundle/1.7.0.jdk /System/Library/Java/JavaVirtualMachines mkdir -p /System/Library/Java/JavaVirtualMachinesĬp -R build/macosx-universal/j2sdk-bundle/1.7.0.jdk /System/Library/Java/JavaVirtualMachines Finally, setting up env vars The official instructions ask you to do this: mkdir -p ~/Library/Java/JavaVirtualMachinesĬp -R build/macosx-universal/j2sdk-bundle/1.7.0.jdk ~/Library/Java/JavaVirtualMachines Wrong installation directory in the official instructions Instead try this: make -C make build make -C make build The following does not work due to a know bug: make -C make make -C make It is mentioned in the JTReg build documentation but easy to miss it. Building JTReg did not work due to a known bug I had a 3.2.4 version and that didn’t work. Security Bulletins can also be found on the IBM Support Portal. Make sure that the version of XCode is 3.2.5 or more. IBM customers requiring these fixes in a binary IBM Java SDK/JRE for use with an IBM product should contact IBM Support and engage the appropriate product service team. If you are not sure you need Java, try running your PC for a few weeks to see if you can do without it.
Repeat the above for each binary that is reported missing in /bin. Mac users must update to the Java 7 Update 13 for Mac OS X. Workaround was to create symlinks in the /bin directories to make the However, on my Mac OS X, these binaries were present in /usr/bin/. The installation expects a bunch of binaries to be present in /bin. However, these are the things that might go wrong: Missing binaries in /bin You can follow the instructions line by line and get Java 7 installed Here are the official instructions for Mac OS X: This update enables per-website control of the Java plug-in within Safari 5.1.9 or later.
OS name: "mac os x", version: "10.While you can download the binaries for Java 7 for Windows and Linux from here, the instructions for setting up Java 7 for Mac OS X are a lot more tedious. Java for Mac OS X 10.6 Update 17 delivers improved security, reliability, and compatibility by updating Java SE 6 to 1.6.065. Its some sort of supposed bug from what I read use:Įcho JAVA_HOME= /usr/libexec/java_home -v 1.7 | sudo tee -a /etc/mavenrc Next time I opened the terminal and ran mvn -v it went back to java version 1.6.
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jreĭefault locale: en_US, platform encoding: UTF-8 Java version: 1.7.0_45, vendor: Oracle Corporation Maven home: /usr/local/Cellar/maven/3.1.1/libexec Once I set the JAVA_HOME= /usr/libexec/java_home It worked, but then I noticed the Java SDK Maven was using was Java version: 1.6.0_65, which is not the latest SDK I installed on the system. Once complete don't panic when $ maven -version doesn't work, instead use $mvn -version as /download.cgi recommended.
I was pulling my hair out until I found this website, which recommends you Install homebrew and follow the instructions on this page: I was trying to follow this (which failed because the location of the java_home has changed on Mavericks:
In case anyone is installing Maven on a 64-bit Mac running Mac OSX 'Mavericks' save yourself some time and some hair pulling trying to get Maven installed.