Ask Your Question

How to install and configure JDK & JRE in macOS Sierra?

asked 2017-09-26 16:19:45 +0100

BillLibre gravatar image

updated 2020-07-13 14:41:34 +0100

Alex Kemp gravatar image

On my brand-new iMac Retina 5K 27" 2017 running macOS Sierra 10.12.6, I am not able to run Base. I have downloaded and installed the latest JDK for macOS (jdk-9_osx-x64_bin.dmg) from Oracle's Java website. After doing so, I did not find a "jre" subfolder in /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/. In LibreOffice > Preferences > Advanced, I checked "Use a Java runtime environment", but no JRE was listed below under "Vendor/Version/Features."

I then downloaded the latest JRE for macOS (jre-9_osx-x64_bin.dmg) from Oracle's website and ran that installer. Still no "jre" subfolder in /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/, where it should be, and still no JRE listed in LO > Preferences > Advanced. Apparently, Oracle's installer installs the JRE to support Java applets in web browsers, but not to support applications.

Next, I downloaded jre-9_osx-x64_bin.tar.gz and uncompressed it. This yielded a folder named "jre-9.jre". I copied this folder to /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/ and renamed it "jre". In LO > Preferences > Advanced, I clicked "Add", navigated to /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/jre/, and clicked OK. LibreOffice displayed this message:

The Java runtime environment you selected is not the required version. Please select a different folder.

Would someone who knows how to install and configure Java on macOS Sierra please provide instructions on how to do this successfully?

Thanks, BillLibre

edit retag flag offensive close merge delete


I have the same problem but with macOS 10.13.3 on 15inch MacBook Pro

Tonyb gravatar imageTonyb ( 2018-03-07 00:59:48 +0100 )edit

I have just the same problem with OsX 10.13.4 (High Sierra). Were you able to find a solution?

macdafydd gravatar imagemacdafydd ( 2018-06-11 10:10:38 +0100 )edit

1 Answer

Sort by » oldest newest most voted

answered 2019-06-13 10:45:43 +0100

The Old Goat gravatar image

Now I've found out that you have to install the JDK Development also. Sorted it for me.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools



Asked: 2017-09-26 16:19:45 +0100

Seen: 1,295 times

Last updated: Jun 13 '19