"class file versions" discrepancy
Tuesday, 14 March 2023 · 6 messages · last reply 15 Mar 2023
MG
Murray, Gregory14 Mar 2023 15:10 #
Hello,
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?
Thanks,
Greg
MH
Martin Honnen14 Mar 2023 15:18 #
Quoted text · Murray, Gregory · 27 lines
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.
If you really need to use Java 8 (1.8) then you can try the latest BaseX 9 release, I guess.
MH
Martin Honnen14 Mar 2023 15:24 #
Quoted text · Martin Honnen · 34 lines
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.
MG
Murray, Gregory14 Mar 2023 15:47 #
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
Quoted text · BaseX-Talk · 16 lines
From: BaseX-Talk <basex-talk-bounces at mailman.uni-konstanz.de> on behalf of Martin Honnen <martin.honnen at gmx.de> Date: Tuesday, March 14, 2023 at 10:24 AM To: basex-talk at mailman.uni-konstanz.de <basex-talk at mailman.uni-konstanz.de> Subject: Re: [basex-talk] "class file versions" discrepancy You don't often get email from martin.honnen at gmx.de. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> 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<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fadoptium.net%2Ftemurin%2Freleases%2F%3Fversion%3D11&data=05%7C01%7Cgregory.murray%40ptsem.edu%7C27dffeb977634154e76008db2497c00c%7C6fb1672fa768436d88c81585060baf28%7C0%7C0%7C638144006442695193%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Dh0wW%2FepHZQ%2Fo2NsKRgpBhABhQ9qJl93c1LeV9CsVME%3D&reserved=0> has a macOS aarch64 version.
CG
Christian Grün15 Mar 2023 17:17 #
Dear Greg,
Quoted text · Murray, Gregory · 1 line
> Suggestion to those who maintain the documentation: Perhaps the BaseX documentation should recommend Adoptium for Mac as well as Windows.
Thanks for the suggestion. I’ve added notes on macOS and java.com in our documentation [1]. In addition, our download page mentions Homebrew, which is a popular package manager, and which installs a proper version of Java automatically while installing BaseX [2,3].
All the best,
Christian
[1] https://docs.basex.org/wiki/Startup
[2] https://basex.org/download/
[3] https://brew.sh/
Quoted text · Murray, Gregory · 50 lines
> From: BaseX-Talk <basex-talk-bounces at mailman.uni-konstanz.de> on behalf of Martin Honnen <martin.honnen at gmx.de> > Date: Tuesday, March 14, 2023 at 10:24 AM > To: basex-talk at mailman.uni-konstanz.de <basex-talk at mailman.uni-konstanz.de> > Subject: Re: [basex-talk] "class file versions" discrepancy > > You don't often get email from martin.honnen at 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.
MG
Murray, Gregory15 Mar 2023 17:35 #
Thanks, Christian! Sounds good.
Quoted text · Christian Grün · 67 lines
From: Christian Grün <christian.gruen at gmail.com> Date: Wednesday, March 15, 2023 at 12:18 PM To: Murray, Gregory <gregory.murray at ptsem.edu> Cc: basex-talk at mailman.uni-konstanz.de <basex-talk at mailman.uni-konstanz.de> Subject: Re: [basex-talk] "class file versions" discrepancy [You don't often get email from christian.gruen at gmail.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] Dear Greg, > Suggestion to those who maintain the documentation: Perhaps the BaseX documentation should recommend Adoptium for Mac as well as Windows. Thanks for the suggestion. I’ve added notes on macOS and java.com in our documentation [1]. In addition, our download page mentions Homebrew, which is a popular package manager, and which installs a proper version of Java automatically while installing BaseX [2,3]. All the best, Christian [1] https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.basex.org%2Fwiki%2FStartup&data=05%7C01%7Cgregory.murray%40ptsem.edu%7Cca1001dc0c9e43148c1208db2570dbcb%7C6fb1672fa768436d88c81585060baf28%7C0%7C0%7C638144938894951124%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5n4vHTPYbxABnYAXNiB54xFuU4l6i5DFLeeHKFHm2CM%3D&reserved=0 [2] https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbasex.org%2Fdownload%2F&data=05%7C01%7Cgregory.murray%40ptsem.edu%7Cca1001dc0c9e43148c1208db2570dbcb%7C6fb1672fa768436d88c81585060baf28%7C0%7C0%7C638144938894951124%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zZuk%2BUiqq42GXlEfXm87InkosKwoUqM5F8y2oxsGUsM%3D&reserved=0 [3] https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbrew.sh%2F&data=05%7C01%7Cgregory.murray%40ptsem.edu%7Cca1001dc0c9e43148c1208db2570dbcb%7C6fb1672fa768436d88c81585060baf28%7C0%7C0%7C638144938894951124%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3Tc0tc2usn7Ail4OduEvLzecVjezMWjhJ9skUEjMzRY%3D&reserved=0 > From: BaseX-Talk <basex-talk-bounces at mailman.uni-konstanz.de> on behalf of Martin Honnen <martin.honnen at gmx.de> > Date: Tuesday, March 14, 2023 at 10:24 AM > To: basex-talk at mailman.uni-konstanz.de <basex-talk at mailman.uni-konstanz.de> > Subject: Re: [basex-talk] "class file versions" discrepancy > > You don't often get email from martin.honnen at 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://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fadoptium.net%2Ftemurin%2Freleases%2F%3Fversion%3D11&data=05%7C01%7Cgregory.murray%40ptsem.edu%7Cca1001dc0c9e43148c1208db2570dbcb%7C6fb1672fa768436d88c81585060baf28%7C0%7C0%7C638144938894951124%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fDsccKez%2BioZFSgHKau77vlRvzZpnQObNNKZXesLTgg%3D&reserved=0 has a macOS aarch64 version.
Written for BaseX 10.4. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery