I am trying to create my first macro with LibreOffice version 6.1.6.3 on a MacBook Pro running Mac OS X 10.14.5. When I select menu item 'Tools | Macros | Run Macro' I get this popup box: 'LibreOffice requires Oracle's Java Development Kit (JDK) on Mac OS X 10.10 or greater to perform this task. Please install them and restart LibreOffice.' However, the title of the popup box is 'JRE Required'.
Download JDK for Mac - Open source and cross-platform development toolkit designed by Oracle for building multi-platform Java based applications and applets. Oracle’s JDK (short for Java Development Kit) comes with a built-in comprehensive collection of tools that make it simple to develop. When you install the Java Development Kit (JDK), the associated Java Runtime Environment (JRE) is installed at the same time. The JavaFX SDK and Runtime are also installed and integrated into the standard JDK directory structure. Depending on your processor, the downloaded file has one of the following names: jdk-8u version-macosx-amd64.dmg. Java SE 14 Archive Downloads. Go to the Oracle Java Archive page. The JDK is a development environment for building applications using the Java programming language. The JDK includes tools useful for developing and testing programs written in the Java programming language and running on the Java TM platform. Download Java Liberica JDK for Linux, Windows, macOS. It is built from OpenJDK, tested and passed the JCK provided under the license from OpenJDK. Here you can download the Java JDK 1.8. After installing it, it should appear as an option inside IntelliJ. UPDATE: Find File - Project structure menu and go to Project Settings - Project tab. If on Project SDK the Java version 1.8 SDK is not selected, change it and click OK.
I found a potential answer to this problem in the question 'Mac Java problem when creating a database' but the detailed directions talk about installing the JDK. The error messages I got in the popup implied that I need both the JDK and the JRE.
When I install the JDK will I also get a copy of the JRE? What are the current instructions for installing the needed Oracle libraries if I want to use macros?
Thanks, bobby
Comments
When I install the JDK will I also get a copy of the JRE?
Yes. As I understand, Oracle doesn’t provide a JRE alone. Sorry, I can’t give any other pointer as I don’t use Mac.
@gabix There is a JRE for Mac OS X (current versions filename is jre-8u221-macosx-x64.dmg
), but LibreOffice can't deal with that.
I meant the current Java, not the old Java 8.
E-bot, why not repost it as an answer?
Since I work with Windows and not with Mac, I only saw it as an additional hint. And the question was already marked as solved. If it still helps, so much the better. Have all your joy in it.
JDK 9 & Later
Oracle's OpenJDK JDK binaries for Windows, macOS, and Linux areavailable on release-specific pages of jdk.java.net as .tar.gz
or.zip
archives.
As an example, the archives for JDK 13 may be found on jdk.java.net/13 and may be extractedon the command line using
$ tar xvfopenjdk-13*_bin.tar.gz
or
$ unzipopenjdk-13*_bin.zip
depending on the archive type.
JDK 8
Debian, Ubuntu,etc.
On the command line, type:
$ sudo apt-get installopenjdk-8-jre
The openjdk-8-jre
package containsjust the Java Runtime Environment. If you want to develop Javaprograms then please install the openjdk-8-jdk
package.
Fedora, OracleLinux, Red Hat Enterprise Linux, etc.
On the command line, type:
$ su -c 'yum installjava-1.8.0-openjdk'
The java-1.8.0-openjdk
packagecontains just the Java Runtime Environment. If you want to developJava programs then install the java-1.8.0-openjdk-devel
package.
JDK 7
Debian, Ubuntu,etc.
On the command line, type:
$ sudo apt-get installopenjdk-7-jre
The openjdk-7-jre
package containsjust the Java Runtime Environment. If you want to develop Javaprograms then install the openjdk-7-jdk
package.
Jdk Download Mac Os
Fedora, OracleLinux, Red Hat Enterprise Linux, etc.
On the command line, type: Vmware fusion for mac.
$ su -c 'yum installjava-1.7.0-openjdk'
The java-1.7.0-openjdk
packagecontains just the Java Runtime Environment. If you want to developJava programs then install the java-1.7.0-openjdk-devel
package.
JDK 6
Debian, Ubuntu,etc.
On the command line, type:
$ sudo apt-get installopenjdk-6-jre
The openjdk-6-jre
package containsjust the Java Runtime Environment. If you want to develop Javaprograms then install the openjdk-6-jdk
package.
Fedora, OracleLinux, Red Hat Enterprise Linux, etc.
On the command line, type:
$ su -c 'yum installjava-1.6.0-openjdk'
The java-1.6.0-openjdk
packagecontains just the Java Runtime Environment. If you want to developJava programs then install the java-1.6.0-openjdk-devel
package.
BSD Port
Jdk Download Mac Mojave
For a list of pointers to packages of the BSD Port forDragonFly BSD, FreeBSD, Mac OS X, NetBSD and OpenBSD, please seethe BSD porting Project's wikipage.