Ask Your Question
1

LibreOffice requires Oracle's JDK on Mac OS X

asked 2019-07-19 20:31:44 +0200

bobby.e gravatar image

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".

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

edit retag flag offensive close merge delete

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 gravatar imagegabix ( 2019-07-19 20:59:28 +0200 )edit

@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.

Opaque gravatar imageOpaque ( 2019-07-19 22:23:56 +0200 )edit

I meant the current Java, not the old Java 8.

gabix gravatar imagegabix ( 2019-07-19 22:30:34 +0200 )edit
1
ebot gravatar imageebot ( 2019-07-20 16:24:54 +0200 )edit

E-bot, why not repost it as an answer?

gabix gravatar imagegabix ( 2019-07-20 16:41:23 +0200 )edit

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.

ebot gravatar imageebot ( 2019-07-20 18:30:01 +0200 )edit

1 Answer

Sort by » oldest newest most voted
3

answered 2019-07-19 22:20:02 +0200

Opaque gravatar image

updated 2019-07-20 16:05:12 +0200

Hello,

yes - a JDK contains a JRE as well. Please read this FAQ and get your JDK from here - Please note: Oracle license grants usage at no cost for private, non-commercial usage only. There are alternatives like OpenJDK (Download), which in many cases don't provide support of operating system's installation method (e.g. OpenJDK doesn't provide a .dmg file for Max OS X's own installation method but a tar.gz, which you need to extract and place to a proper directory on your own).

Instruction to install (as usual in Max OS X)

  • Download from Oracle
  • Double click on the .dmg file
  • Follow any instructions
  • Open LibreOffice
  • Go to LibreOffice -> Preferences -> LibreOffice -> Advanced
  • Tick option Use a java runtime environment
  • Check the dialog is showing information according to screenshot (Of course your version may differ). Especially watch for the "Location" right above Option Features. Perhaps you may choose your location accordingly, if you are going for one of the alternatives to Oracle's Java release.

image description

edit flag offensive delete link more

Comments

Opaque, thank you for your directions. I don't anticipate any problems now. bobby

bobby.e gravatar imagebobby.e ( 2019-07-19 23:19:43 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-07-19 20:31:44 +0200

Seen: 7,009 times

Last updated: Jul 20 '19