BaseX installation cannot see Java
Tuesday, 7 May 2024 · 5 messages · last reply 8 May 2024
MH
Quoted text · ykhabins at bellsouth.net · 43 lines
On 07/05/2024 17:15, ykhabins at bellsouth.net wrote: > Hello, > > Trying to install BaseX via launching BaseX110-20240320.152714.exe in > Windows 10 OS environment in a corporate environment. > The build version is irrelevant. I tried few of them with the same outcome. > Even running the installation as "Run as administrator". > Also, I am a local admin on the PC. > > Unfortunately, I am getting the following error message dialog box: > > --------------------------- > BaseX Setup > --------------------------- > Please install Java 11 or higher before executing the installer. > --------------------------- > OK > --------------------------- > > Somehow the BaseX setup cannot find Java on the machine. > Though the OpenJDK Runtime Environment Temurin-17.0.8.1+1 (build 17.0.8.1+1) > is installed. > The current BaseX installation is working properly. > > 1) Executing this XQuery in BaseX GUI to get Java VM properties: > for $p in proc:property-names()[starts-with(., 'java.vm.')] > return $p || ': ' || proc:property($p) > > It emits the following: > > java.vm.compressedOopsMode: 32-bit > java.vm.info: mixed mode, sharing > java.vm.name: OpenJDK 64-Bit Server VM > java.vm.specification.name: Java Virtual Machine Specification > java.vm.specification.vendor: Oracle Corporation > java.vm.specification.version: 17 > java.vm.vendor: Eclipse Adoptium > java.vm.version: 17.0.8.1+1 > > 2) Issuing PATH statement at the command prompt shows the following: > PATH=C:\Program Files\Eclipse > Adoptium\jre-17.0.8.101-hotspot\bin;C:\WINDOWS\system32;... >
If you use
java -versionat the command prompt, does it give 17?
Y
ykhabins7 May 2024 19:15 #
Hello,
Trying to install BaseX via launching BaseX110-20240320.152714.exe in Windows 10 OS environment in a corporate environment.
The build version is irrelevant. I tried few of them with the same outcome. Even running the installation as "Run as administrator".
Also, I am a local admin on the PC.
Unfortunately, I am getting the following error message dialog box:
---------------------------
BaseX Setup
---------------------------
Please install Java 11 or higher before executing the installer. ---------------------------
OK
---------------------------
Somehow the BaseX setup cannot find Java on the machine.
Though the OpenJDK Runtime Environment Temurin-17.0.8.1+1 (build 17.0.8.1+1) is installed.
The current BaseX installation is working properly.
1) Executing this XQuery in BaseX GUI to get Java VM properties: for $p in
proc:property-names()[starts-with(., 'java.vm.')]
return $p || ': ' || proc:property($p)
It emits the following:
java.vm.compressedOopsMode: 32-bit
java.vm.info: mixed mode, sharing
java.vm.name: OpenJDK 64-Bit Server VM
java.vm.specification.name: Java Virtual Machine Specification java.vm.specification.vendor: Oracle Corporation
java.vm.specification.version: 17
java.vm.vendor: Eclipse Adoptium
java.vm.version: 17.0.8.1+1
2) Issuing PATH statement at the command prompt shows the following: PATH=C:\Program Files\Eclipse
Adoptium\jre-17.0.8.101-hotspot\bin;C:\WINDOWS\system32;...
It seems that some kind of security settings are causing it. Please advise.
Regards,
Yitzhak KhabinskyY
ykhabins7 May 2024 21:27 #
C:\>java -version
openjdk version "17.0.8.1" 2023-08-24
OpenJDK Runtime Environment Temurin-17.0.8.1+1 (build 17.0.8.1+1) OpenJDK 64-Bit Server VM Temurin-17.0.8.1+1 (build 17.0.8.1+1, mixed mode, sharing)
Regards,
Yitzhak Khabinsky
CG
Christian Grün7 May 2024 22:40 #
Thanks for reporting this, Yitzhak.
It seems something is going wrong in the Java version check of the installer:
*https://github.com/BaseXdb/basex-dist/blob/20c565a4b8b79c27d276a191b35cb224ce537ef3/win/BaseX.nsi#L50 <https://github.com/BaseXdb/basex-dist/blob/20c565a4b8b79c27d276a191b35cb224ce537ef3/win/BaseX.nsi#L50>*
Quoted text · ykhabins · 14 lines
<ykhabins at bellsouth.net> schrieb am Di., 7. Mai 2024, 19:27: > C:\>java -version > openjdk version "17.0.8.1" 2023-08-24 > OpenJDK Runtime Environment Temurin-17.0.8.1+1 (build 17.0.8.1+1) > OpenJDK 64-Bit Server VM Temurin-17.0.8.1+1 (build 17.0.8.1+1, mixed mode, > sharing) > > > > Regards, > Yitzhak Khabinsky > > >
CG
Christian Grün8 May 2024 08:34 #
Hi Yitzhak,
We have revised the Windows installation script and improved the debugging output. If it fails, it gives more information on the analyzed version string. Please check it out and tell us if it works for you [1].
Hope this helps,
Christian
[1] https://files.basex.org/releases/latest/
Quoted text · Christian Grün · 28 lines
On Tue, May 7, 2024 at 10:40 PM Christian Grün <christian.gruen at gmail.com> wrote: > Thanks for reporting this, Yitzhak. > > It seems something is going wrong in the Java version check of the > installer: > > *https://github.com/BaseXdb/basex-dist/blob/20c565a4b8b79c27d276a191b35cb224ce537ef3/win/BaseX.nsi#L50 > <https://github.com/BaseXdb/basex-dist/blob/20c565a4b8b79c27d276a191b35cb224ce537ef3/win/BaseX.nsi#L50>* > > > > > <ykhabins at bellsouth.net> schrieb am Di., 7. Mai 2024, 19:27: > >> C:\>java -version >> openjdk version "17.0.8.1" 2023-08-24 >> OpenJDK Runtime Environment Temurin-17.0.8.1+1 (build 17.0.8.1+1) >> OpenJDK 64-Bit Server VM Temurin-17.0.8.1+1 (build 17.0.8.1+1, mixed mode, >> sharing) >> >> >> >> Regards, >> Yitzhak Khabinsky >> >> >>
Written for BaseX 10.7. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery