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 :-)
[ Parent
| on HN ]
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.
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/JavaVirtualMachinesI 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)
Get Homebrew installed - https://discourse.brew.sh/t/how-to-install-openjdk-with-brew...
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.
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!
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
I am, I'll wait for that.
Edit: Apparently I won't! This isn't ideal.
Just noticed that the thread was about OpenJDK, for which there is no cask at the moment. The java cask is the Oracle JDK.
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.
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 ?
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...