Running oXygen 23.1 on Macbook M1 with openjdk version 11.0.15

Having trouble installing Oxygen? Got a bug to report? Post it all here.
axiom
Posts: 3
Joined: Thu Sep 29, 2022 9:14 am

Running oXygen 23.1 on Macbook M1 with openjdk version 11.0.15

Post by axiom »

Hi,
I'm trying to run oXygen 23.1 on a Mac Monterey (12.6). I've installed Java openjdk 11.0.15 2022-04-19 LTS, and set it as the default Java.
However every time I try launching oXygen via the JavaAppLauncher I get an error: "You need at least a 1.8 Java Virtual Machine to install Oxygen XML Editor.
Please download it from http://java.com"

Does oXygen on Mac support any of the openJDK java SDKs?
adrian
Posts: 2805
Joined: Tue May 17, 2005 4:01 pm

Re: Running oXygen 23.1 on Macbook M1 with openjdk version 11.0.15

Post by adrian »

Hello,

From what provider did you download OpenJDK 11.0.15?
From the error message it looks like Oxygen doesn't detect the installed Java. Most likely the JAVA_HOME environment variable is not set.

For Oxygen v23.1 the distribution for Apple silicon does not contain a Java VM. One was not available from Oracle at the time.
Do note that Oxygen also requires JavaFX for some features. So, you will need a Java runtime for macOS ARM 64-bit that includes JavaFX.
You can find one for download here (use the .dmg), I recommend 11:
https://www.azul.com/downloads/?version ... age=jdk-fx
Java 11 LTS / macOS / ARM 64-bit / JDK FX

Starting with v24.0 the Java VM is bundled with the Apple silicon distribution. No other Java VM is required.
Starting with v25.0 the main OpenJDK distribution of Oxygen for macOS will be universal, so it will work on both Intel and Apple silicon Macs.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
axiom
Posts: 3
Joined: Thu Sep 29, 2022 9:14 am

Re: Running oXygen 23.1 on Macbook M1 with openjdk version 11.0.15

Post by axiom »

I do have the JAVA_HOME, I installed JAVA 11.0.15 using SDK MAN:
Screen Shot 2022-09-29 at 8.16.54 PM.png
Screen Shot 2022-09-29 at 8.16.54 PM.png (113.93 KiB) Viewed 249 times
Attachments
Screen Shot 2022-09-29 at 7.54.58 PM.png
Screen Shot 2022-09-29 at 7.54.58 PM.png (74.01 KiB) Viewed 249 times
adrian
Posts: 2805
Joined: Tue May 17, 2005 4:01 pm

Re: Running oXygen 23.1 on Macbook M1 with openjdk version 11.0.15

Post by adrian »

Hi,

Java seems to be the correct version, but it most likely doesn't include JavaFX.
I would still recommend using the download that I mentioned. That works without any additional tinkering.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
axiom
Posts: 3
Joined: Thu Sep 29, 2022 9:14 am

Re: Running oXygen 23.1 on Macbook M1 with openjdk version 11.0.15

Post by axiom »

Yep, actually downloading the openJDK via DMG worked. Not sure why, but thanks.
Post Reply