How to install java jdk 7 on Snow Leopard
My Mac currently is running Snow Leopard (10.6.8), and I would like to develop with Java 7. I downloaded the Java 7 OS X installer from Oracle's website, started to run it. Unfortunately, I was immediately greeted with a message that said the installer is supported only on OS X Lion (10.7.3). Is there any way I can get Java 7 on my machine with Snow Leopard? I am not buying a new OS just to upgrade my Java. I googled around some, but I am not finding much. I'm hoping I can find some help here. Thanks.
使用http://www.charlessoft.com/中的Pacifist在您从http://www.oracle.com下载的'jdk7-7uX-macosx-x64.dmg'文件中打开并安装'JDK 7 Update X.pkg' .COM / technetwork / JAVA / JavaSE的/下载/ index.html的
From what I have read JDK 7 does not require 10.7+ so I simply opened the shipped .pkg
installer file with PackageMaker (an Xcode tool) and removed the OS version requirement and re-built it.
You will need to copy the installer out of the .dmg file since you have to save changes.
Edit: You will need to Build to another directory as the mounted .dmg is read-only.
So far in my using this I haven't experienced any issues, even the Java preference pane is working properly.
One thing to note, you will have to reorder JDKs in Java Preferences.app
to get programs to use the new JDK instead of Java 6.
I've even gone as far as to copy the Java 7 .jdk
bundle into /System/Library/Java/JavaVirtualMachines/
, and it seems to be function normally.
Just don't move/rename the JDK bundles while Java applications are running; not that I've done that by accident or anything...
I had the same problem and was not able to google the proper way to do it. At the end I came up with solution myself and put it on my blog:
http://jksha.blogspot.se/2013/09/java-7-and-snow-leopard-osx-106.html
链接地址: http://www.djcxy.com/p/5694.html