org/basex/BaseX has been compiled by a more recent version of the Java Runtime (class file version 55.0)
Friday, 6 December 2024 · 5 messages · last reply 7 Dec 2024
MH
Quoted text · Patrick Durusau · 22 lines
On 06/12/2024 22:33, Patrick Durusau wrote: > > Trying to run BaseX 11.6 on Windows 11 with Java: > > java -version > java version "1.8.0_431" > Java(TM) SE Runtime Environment (build 1.8.0_431-b10) > Java HotSpot(TM) Client VM (build 25.431-b10, mixed mode, sharing) > > Error message: > > Exception in thread "main" java.lang.UnsupportedClassVersionError: > org/basex/BaseX 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 > > Apologies but I'm still on Windows but hope to return to Linux soon, > but not today. > > Is this a known problem? Thanks! > >
Yes, straight from the docs, Java 11 is a requirement:
First, ensure that an up-to-date version of the Java Runtime Environment (JRE) is available:
BaseX Version Minimum Java Version
10 11
9 8
8 7
/older/ 6
PD
Patrick Durusau6 Dec 2024 23:33 #
Greetings,
Trying to run BaseX 11.6 on Windows 11 with Java:
java -version
java version "1.8.0_431"
Java(TM) SE Runtime Environment (build 1.8.0_431-b10)
Java HotSpot(TM) Client VM (build 25.431-b10, mixed mode, sharing)
Error message:
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/basex/BaseX 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
Apologies but I'm still on Windows but hope to return to Linux soon, but not today.
Is this a known problem? Thanks!
Patrick
G
Graydon6 Dec 2024 23:39 #
Quoted text · Patrick Durusau · 7 lines
On Fri, Dec 06, 2024 at 04:33:33PM -0500, Patrick Durusau scripsit: > Trying to run BaseX 11.6 on Windows 11 with Java: > > java -version > java version "1.8.0_431" > Java(TM) SE Runtime Environment (build 1.8.0_431-b10) > Java HotSpot(TM) Client VM (build 25.431-b10, mixed mode, sharing)
All of those say the java you're actually running is eight.
The fix is generally to switch the environment variable for JAVA_PATH or similar so that it's pointing at the Java 11 install.
-- Graydon
--
Graydon Saunders | graydonish at fastmail.com
Þæs oferéode, ðisses swá mæg.
-- Deor ("That passed, so may this.")
PD
Patrick Durusau7 Dec 2024 00:02 #
Thanks for the quick responses!
Java reports it is the latest version.
Thanks. God I hate windows.
Patrick
Quoted text · Graydon · 15 lines
On 12/6/2024 4:39 PM, Graydon wrote: > On Fri, Dec 06, 2024 at 04:33:33PM -0500, Patrick Durusau scripsit: >> Trying to run BaseX 11.6 on Windows 11 with Java: >> >> java -version >> java version "1.8.0_431" >> Java(TM) SE Runtime Environment (build 1.8.0_431-b10) >> Java HotSpot(TM) Client VM (build 25.431-b10, mixed mode, sharing) > All of those say the java you're actually running is eight. > > The fix is generally to switch the environment variable for JAVA_PATH or > similar so that it's pointing at the Java 11 install. > > -- Graydon >
PD
Patrick Durusau7 Dec 2024 00:17 #
The more helpful answer is to download the latest JDK, not from Oracle but from:
https://adoptium.net/
It's in the documentation but I was reading too quickly.
Patrick
Quoted text · Patrick Durusau · 24 lines
On 12/6/2024 5:01 PM, Patrick Durusau wrote: > Thanks for the quick responses! > > Java reports it is the latest version. > > Thanks. God I hate windows. > > Patrick > > On 12/6/2024 4:39 PM, Graydon wrote: >> On Fri, Dec 06, 2024 at 04:33:33PM -0500, Patrick Durusau scripsit: >>> Trying to run BaseX 11.6 on Windows 11 with Java: >>> >>> java -version >>> java version "1.8.0_431" >>> Java(TM) SE Runtime Environment (build 1.8.0_431-b10) >>> Java HotSpot(TM) Client VM (build 25.431-b10, mixed mode, sharing) >> All of those say the java you're actually running is eight. >> >> The fix is generally to switch the environment variable for JAVA_PATH or >> similar so that it's pointing at the Java 11 install. >> >> -- Graydon >>
Written for BaseX 11.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery