BaseX installation cannot see Java

Wednesday, 8 May 2024 · 3 messages · last reply 10 May 2024
Y
ykhabins8 May 2024 16:09 #
Mr. Grun, Good news on my end! The revised installation BaseX Windows installation was very helpful. It showed the following: --------------------------- BaseX Setup --------------------------- Please install Java 11 or higher before executing the installer. Analyzed Java version string: java version "1.6.0" Java(TM) SE Runtime Environment (build pwi3260sr9fp1-20110208_03(SR9 FP1)) IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows Vista x86-32 jvmwi3260sr9-20110203_74623 (JIT enabled, AOT enabled) J9VM - 20110203_074623 JIT - r9_20101028_17488ifx3 GC - 20101027_AA) JCL - 20110203_01 --------------------------- OK --------------------------- I went to Control Panel, and sure enough, it showed two Java installations: 1) Eclipse Temurin JRE with Hotspot 17.0.8.1+1 (x64) 2) IBM 32-bit Runtime Environment v6 I uninstalled the IBM's Java v6, and successfully installed the latest BaseX 11.0 beta build c21851a!!! There are still some questions remaining. Where and how BaseX installer got into old Java v1.6 and missed a legitimate Eclipse Temurin JRE with Hotspot 17.0.8.1+1? c:\>java -version shows the following 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) c:\>path shows the following: PATH=C:\Program Files\Eclipse Adoptium\jre-17.0.8.101-hotspot\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOW S\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WI NDOWS\System32\OpenSSH\;C:\Windows\CCM;C:\Program Files\Eclypsium\;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Users\i300179\AppData\Local\Microsoft\WindowsApps; Overall, that's a lot for such a great support of the product. Regards, Yitzhak Khabinsky
Y
ykhabins10 May 2024 01:09 #
Mr. Grun, It seems that the Windows Management Instrumentation Command-line (WMIC) command line utility gives a reliable result in windows. https://www.techtarget.com/searchenterprisedesktop/definition/Windows-Manage ment-Instrumentation-Command-line-WMIC It is deprecated, but working on any Windows OS, including Windows Server 2022. On my home machine with Windows 10 OS the following command c:\>wmic product where "Name like '%JRE%' or name Like'%Java%' or name Like'%JDK%' " get name,Vendor,Version emits the following 4 (four) Java installations: Name Vendor Version Java(TM) SE Development Kit 18.0.2 (64-bit) Oracle Corporation 18.0.2.0 Java 8 Update 391 (64-bit) Oracle Corporation 8.0.3910.13 Eclipse Temurin JDK with Hotspot 21.0.2+13 (x64) Eclipse Adoptium 21.0.2.13 Java Auto Updater Oracle Corporation 2.8.391.13 To see all available entries: c:\>wmic product where "Name like '%JRE%' or name Like'%Java%' or name Like'%JDK%' " get * /format:textvaluelist So, you can try to integrate wmic based method in the BaseX Windows installer. Regards, Yitzhak Khabinsky
CG
Christian Grün10 May 2024 09:41 #
Thanks for the insight. We’ll need to ensure that the check runs with all versions of Windows that we support, but if a similar problem is reported back to us again, we’ll think about a multi-step version check. Best, Christian
Quoted text · PM · 42 lines
On Thu, May 9, 2024 at 11:09 PM <ykhabins at bellsouth.net> wrote: > Mr. Grun, > > It seems that the Windows Management Instrumentation Command-line (WMIC) > command line utility gives a reliable result in windows. > > https://www.techtarget.com/searchenterprisedesktop/definition/Windows-Manage > ment-Instrumentation-Command-line-WMIC > <https://www.techtarget.com/searchenterprisedesktop/definition/Windows-Management-Instrumentation-Command-line-WMIC> > > It is deprecated, but working on any Windows OS, including Windows Server > 2022. > > On my home machine with Windows 10 OS the following command > c:\>wmic product where "Name like '%JRE%' or name Like'%Java%' or name > Like'%JDK%' " get name,Vendor,Version > > emits the following 4 (four) Java installations: > > Name Vendor > Version > Java(TM) SE Development Kit 18.0.2 (64-bit) Oracle Corporation > 18.0.2.0 > Java 8 Update 391 (64-bit) Oracle Corporation > 8.0.3910.13 > Eclipse Temurin JDK with Hotspot 21.0.2+13 (x64) Eclipse Adoptium > 21.0.2.13 > Java Auto Updater Oracle Corporation > 2.8.391.13 > > To see all available entries: > c:\>wmic product where "Name like '%JRE%' or name Like'%Java%' or name > Like'%JDK%' " get * /format:textvaluelist > > So, you can try to integrate wmic based method in the BaseX Windows > installer. > > Regards, > Yitzhak Khabinsky > > >

⚡Generated with XQuery