I’ve combed through several posts related to this one, but I have not found a solution.
I discovered that Libre can’t find java on my system when I got the following message:
“LibreOffice requires a Java runtime environment (JRE) to perform this task. Please install a JRE and restart LibreOffice.”
System info:
Running Libre Version: 5.2.2.2
Mac OS: 10.11.6
Oracle Java version 8.111
Attempting to solve this, I updated Oracle Java to version 8 update 111. And installed Apple’s legacy Java 6. I then saw in some other posts that a JDK may be needed, rather than a JRE. According to Oracle’s website, I need to download a file called jdk-8uversion-macosx-x64.dmg, which I have been unable to find. I believe that the installer in jdk-8u112-macosx-x64.dmg should also install a JDK, however. But it seems not to have. I am at a loss.
In Libre, I went to Settings/LibreOffice/Advanced and verified that “Use a Java Runtime Environment” is checked.
I then clicked the “Add” button, which prompted me to browse my system for a runtime file.
I browsed the following directories, without finding a file that Libre would accept.
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin
/Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/bin
/Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/jre/bin
I’m guessing that I didn’t actually install a jdk because the following directory does not exist.
/Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/jdk
What do I need to do?