|
NewInstallationProcess
New installation process.
Featured From PKG to Drag and Drop Starting with version 20110916, installation process is no more using PKG included in DMG but a simple Drag&Drop. New DMG Layout
Just drag our friend Duke to right location and OpenJDK 7 will be installed under /Library/Java/JavaVirtualMachines OpenJDK next to Apple's JDK
OpenJDK is near Apple's JDK under /Library/Java/JavaVirtualMachines. You cant miss it with its Duke icon :-) Hey, It don't worksDrag&Drop process require /Library/Java/JavaVirtualMachines to exist on your machine now. It's the case if you installed Apple Developper Preview JDK's or previous OpenJDKs (based on a PKG inside the DMG). Drag&Drop approach seems to be the way Oracle's will deploy its OSX JDK (cf: openjdk-macosxport-mailing list), so this directory will likely be created in later OSX updates. Mike Swingler from Apple Java Team mention in mailing-list : "As a prerequisite to using OpenJDK, we'd ask that you install the Apple Java Developer Preview at" https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20920 "This preview will ensure that you have a /Library/Java/JavaVirtualMachines directory to land the 1.7.0.jdk into, as well as the new API that OpenJDK is now relying on." |
I tried to install openjdk on my mac but somehow default thing still points to apple mac java. Not sure where I am going wrong. I have also copied the directory 1.7.0.jdk directory to /System/Library/Java/JavaVirtualMachines?/1.7.0.jdk/ and also pointed currentjdk to the folder. However can not see openjdk in java reference or terminal. Is there any other system setting that needs to be done?
You shouldn't copy it to /System/Library/Java/JavaVirtualMachines?, /Library/Java/JavaVirtualMachines? was designed for alternative JVM.
Could you try this ?
/usr/libexec/java_home -xml shows that I have a number of JVMs ( including 1.8 which I just installed ) that's good,
in fact 'usr/libexec/java_home -V' shows:
...but what's next? Is there a plist that I can modify so that I can move the openjdk 1.8 to the top of the list ?
Thx
found it... /Applications/utilities/Java Preferences move the one you want to the top.
put:
Thanks.