Thanks, Martin! I downloaded a Java package for macOS aarch64 from Adoptium and installed it. Opening BaseX.jar doesn’t seem to work, but running basexgui opens the GUI.

 

I noticed that the Start Up page of the BaseX documentation recommends that Windows users should download from Adoptium, but I ignored that since I’m on Mac. It seems strange that updating Java from java.com only gave me version 8, apparently.

 

Suggestion to those who maintain the documentation: Perhaps the BaseX documentation should recommend Adoptium for Mac as well as Windows.

 

Thanks,

Greg

 

From: BaseX-Talk <basex-talk-bounces@mailman.uni-konstanz.de> on behalf of Martin Honnen <martin.honnen@gmx.de>
Date: Tuesday, March 14, 2023 at 10:24 AM
To: basex-talk@mailman.uni-konstanz.de <basex-talk@mailman.uni-konstanz.de>
Subject: Re: [basex-talk] "class file versions" discrepancy

You don't often get email from martin.honnen@gmx.de. Learn why this is important

 

Am 3/14/2023 um 3:18 PM schrieb Martin Honnen:

 

Am 3/14/2023 um 3:10 PM schrieb Murray, Gregory:

 

 

I’m new to BaseX. I’m on a Mac with an Apple M1 chip, running macOS 12.6.3. I downloaded the ZIP distribution of BaseX. When I open BaseX.jar I get an error message saying to check the console. When I run basexgui at the command line, I get this error:

 

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/basex/BaseXGUI has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

 

I updated Java to the latest version, according to the download page at java.com and according to the Update tab in the Java control panel in System Preferences. Running java -version returns this:

 

java version "1.8.0_361"

Java(TM) SE Runtime Environment (build 1.8.0_361-b09)

Java HotSpot(TM) 64-Bit Server VM (build 25.361-b09, mixed mode)

 

However, I am still getting the same error when running basexgui. Is there a trick or workaround for this?

 

 

You need Java 11 for BaseX 10, I think. I would think it should be somehow available on maxOS 12 but I don't do much on a Mac.

 

https://adoptium.net/temurin/releases/?version=11 has a macOS aarch64 version.