News for hackers. Stuff that matters.
Re:Java 11 released by geodel on Tuesday September 25, 2018 @03:05PM (#18069410)
Just installed OpenJDK 11 on my macOS machine. Remarkably unfussy install process. Missed the times when installing will involve accepting license, multiple clicks on installer GUI and helpful offers for browser toolbars used to be present :-)
Re:Java 11 released by cs02rm0 on Tuesday September 25, 2018 @03:26PM (#18069634)
Feeling like a bit of a noob, but how did you install it?

I only found a targz download link, didn't understand the contents of it - it looks like the inside of a macOS application package. The installation instructions refer to it being for .dmg file, which it doesn't seem to be.

Re:Java 11 released by pedrow on Tuesday September 25, 2018 @05:17PM (#18070551)
I also was confused - but it's simpler than you think! I followed the instructions here: https://www.selikoff.net/2018/05/13/how-to-install-open-jdk-...

   sudo mv jdk-11.jdk /Library/Java/JavaVirtualMachines
Re:Java 11 released by ssijak on Tuesday September 25, 2018 @04:24PM (#18070185)
I use sdkman to manage my java versions on osx . It is similar to rvm or nvm. https://sdkman.io
Re:Java 11 released by core-questions on Tuesday September 25, 2018 @05:00PM (#18070434)
Re:Java 11 released by rcdmd on Tuesday September 25, 2018 @05:15PM (#18070536)
Re:Java 11 released by oftenwrong on Tuesday September 25, 2018 @03:41PM (#18069794)
You might be able to make an installer package from it with pkgutil. You can use the Contents/Home directory from the tarball as your JAVA_HOME; no need to do an installation.
Re:Java 11 released by geodel on Tuesday September 25, 2018 @07:03PM (#18071298)
Others have already commented but:

1. tar zxf openjdk-11+28_osx-x64_bin.tar.gz

2. sudo mv jdk-11.jdk/ /Library/Java/JavaVirtualMachines/

3. Done!

Re:Java 11 released by andersaa on Tuesday September 25, 2018 @03:42PM (#18069807)
If you're using homebrew then 'brew cask install java' should work once this PR is merged: https://github.com/Homebrew/homebrew-cask/pull/52448
Re:Java 11 released by cs02rm0 on Tuesday September 25, 2018 @03:48PM (#18069857)
I am, I'll wait for that.

Edit: Apparently I won't! This isn't ideal.

Re:Java 11 released by andersaa on Tuesday September 25, 2018 @03:55PM (#18069930)
Just noticed that the thread was about OpenJDK, for which there is no cask at the moment. The java cask is the Oracle JDK.
Re:Java 11 released by jabl on Wednesday September 26, 2018 @02:58AM (#18073396)
https://github.com/AdoptOpenJDK/homebrew-openjdk

Thought they don't (yet) have openjdk11.

There's also some problems with making (at least) the openjdk8 build appear in the usual places, see https://github.com/AdoptOpenJDK/homebrew-openjdk/issues/9 for how to do it manually.

Re:Java 11 released by calcifer on Tuesday September 25, 2018 @03:24PM (#18069612)
Glad to see macOS catch up with Linux after all these years :)
Re:Java 11 released by zaphirplane on Tuesday September 25, 2018 @06:24PM (#18071061)
Is it side by side install with 8/9 or does it remove the older version ?
Re:Java 11 released by pedrow on Wednesday September 26, 2018 @02:40AM (#18073302)
You can install side-by-side (I have 1.8 and 11 both installed) and switch using java_home, see https://alvinalexander.com/macos/how-to-set-mac-osx-java-ver...