How to install java jdk 7 on Snow Leopard

后端 未结 9 2202
忘掉有多难
忘掉有多难 2020-11-30 22:22

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.

9条回答
  •  失恋的感觉
    2020-11-30 22:49

    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...

提交回复
热议问题