3

I am trying to get LibreOffice to work with my Mac. We are trying to use the database application, but keep getting asked to install Java so it can connect to the tables.

I have installed Java and can see that the installed java instance is located here: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/

When I try to manually link this in the settings for LibreOffice it tells me:

The folder you selected does not contain a Java runtime environment. Please select a different folder.

My version of LibreOffice is Version: 5.2.2.2 My version of Mac OS is 10.11.6

I have tried the commands

java -version

and

echo $JAVA_HOME

where the $JAVA_HOME returns nothing.

karel
  • 13,390
  • 26
  • 45
  • 52
John Smith
  • 167
  • 1
  • 8
  • That's a Java applet plugin you're pointing to, not Java Runtime Environment. – gronostaj Oct 09 '16 at 09:17
  • hi @gronostaj, can you tell me how to install the java runtime envoirnment? i went to oracles website and downloaded from this [link](https://www.java.com/en/download/) but this seems to be incorrect i guess – John Smith Oct 09 '16 at 09:21
  • You probably need to install the full JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html – greg-449 Oct 09 '16 at 09:30
  • 1
    thanks @greg-449. After re-installing the Java libraries and enabling them in the preferences in libre office. I finally got it to work. Thank you so much for your time and effort. Please set it as an answer and i will mark it – John Smith Oct 09 '16 at 09:43

2 Answers2

4

You need to install the full JDK rather than just the JRE (which only installs the Applet support). This applies to any macOS application that depends on Java (Eclipse is another example).

The Oracle download page for the Java SE JDK is here

karel
  • 13,390
  • 26
  • 45
  • 52
greg-449
  • 1,145
  • 3
  • 12
  • 13
0

Read the documentation here.

Download and Install Java Runtime Environment for Mac here.

Hope this helps.

Abhishek
  • 103
  • 4