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
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
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
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
The more helpful answer is to download the latest JDK, not from Oracle but from:
It's in the documentation but I was reading too quickly.
Patrick
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
basex-talk@mailman.uni-konstanz.de