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. If you don't have one, then download a JDK 8 version and install it. Look for JDK 8 installations ('Java SE 8'). Forcing NetBeans to use JDK1.8 NetBeans on MAC OS X uses a version of JDK in some non-explicit way, and it's not always what you want. Java jdk 1 5 free download - Apple Java for OS X 10.5, Apple Mac OS Update 8.6, Apple Mac OS Update 9.0.4, and many more programs.