We would like to launch UVC 6.10.x on a Windows workstation with AdoptOpenJDK 11, what is the easiest way to make univiewer_console.bat to look for Adoptopenjdk instead of other Java versions installed on the workstation?
Release : 6.10.x
Component : Dollar Universe
Subcomponent: Univiewer Console
UVC Standalone looks for a valid Java installation in:
1. the environment variable JAVA_HOME
2. the Windows registry keys HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit or HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
In order to force to use a specific Java JRE/JDK version, you should edit the variable JAVA_HOME in the User environment as follows:
This PC - Properties - Advanced System Settings - Advanced - Environment Variables
User Variables, click on New
Variable Name: JAVA_HOME
Variable value: C:\Program Files\AdoptOpenJDK\jdk-18.104.22.168-hotspot (should be set to your corresponding JRE/JDE installation folder)
Save and close, then launch again the univiewer_console.exe and this time UVC should be launched using the desired Java version.
The above procedure will avoid security restrictions such as on Citrix environments where registry settings cannot be checked.