My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
NewInstallationProcess  
New installation process.
Featured
Updated Sep 17, 2011 by henri.gomez

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 works

Drag&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."

Comment by jain...@gmail.com, Oct 8, 2011

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?

Comment by project member henri.gomez, Oct 10, 2011

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
Comment by macegh...@gmail.com, Mar 8, 2012

/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:

  1. 6.0_29-b11-402, x86_64: "Java SE 6" /System/Library/Java/JavaVirtualMachines?/1.6.0.jdk/Contents/Home
    1. 6.0_29-b11-402, i386: "Java SE 6" /System/Library/Java/JavaVirtualMachines?/1.6.0.jdk/Contents/Home
    2. 6.0_30-b12-409, x86_64: "Java SE 6" /Library/Java/JavaVirtualMachines?/1.6.0_30-b12-409.jdk/Contents/Home
    3. 6.0_30-b12-409, i386: "Java SE 6" /Library/Java/JavaVirtualMachines?/1.6.0_30-b12-409.jdk/Contents/Home
    4. 8.0_b11-20111112, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines?/openjdk-1.8-x86_64/Contents/Home

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

Comment by macegh...@gmail.com, Mar 8, 2012

found it... /Applications/utilities/Java Preferences move the one you want to the top.

put:

export JAVA_HOME=usr/libexec/java_home into your .bashrc or .profile ( this will help with JAVA_HOME )

Thanks.


Sign in to add a comment
Powered by Google Project Hosting