![download openjdk 7 download openjdk 7](https://i.stack.imgur.com/zNHld.png)
OpenJDK Runtime Environment (build 1.7.0-internal-b00) Sudo ln -s /System/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents 1.7Īfter making these changes, I was able to switch to JDK 7 easily. cd /System/Library/Frameworks/amework/Versions Then I had to add a symlink for 1.7 in the Versions directory. Ln -s /System/Library/Frameworks/amework/Versions/CurrentJDK/Contents/Home On my system, /Library/Java/Home had a symlink to /System/Library/Frameworks/amework/Home, so I changed it to the CurrentJDK that Java Preferences and setjdk use. I like the shorter (and seemingly more common) "/Library/Java/Home", so I set it back to that in my ~/.profile: export JAVA_HOME=/Library/Java/Home
![download openjdk 7 download openjdk 7](https://www.offlineinstallerapps.com/wp-content/uploads/2017/08/java-development-kit-jdk-free-download-700x533.jpg)
Lastly, I had my JAVA_HOME set to "/System/Library/Frameworks/amework/Home". Sudo ln -s /Library/Java/JavaVirtualMachines/1.7.0.jdk On line 40, I added "Contents" to the path for JAVA_HOME: export JAVA_HOME=$vmdir/$ver/Contents/Homeįrom there, I had to setup some symlinks so everything would work as expected: cd /System/Library/Java/JavaVirtualMachines/ To make this script work with JDK 7 on OS X, I had to make one minor change. I don't use Java Preferences to set my JDK, instead I use David Blevin's handy setjdk script. After downloading, I installed the dmg as normal. I started off by downloading "OpenJDK 1.7 universal (32/64 bits) from Mac OS/X branch" from the openjdk-osx-build project's downloads.
#Download openjdk 7 how to#
Since it took me a bit of work to figure out how to install OpenJDK 7 on OS X (I'm running Snow Leopard 10.6.7), I figured I'd write down how I did it. Unfortunately, the download page doesn't have support for OS X. At first, I thought Java 7 was released, but soon after realized it was a Developer Preview. Last week, I and saw there was a Java 7 Webinar.