Problem
ALM On-Prem Installation of 2020 R1 fails to install if Open JDK 8 is installed with the following error
Windows
After InstallAnywhere extracts the content it fails with a java message: Could not find a valid Java virtual machine to load. You may need to reinstall a supported Java virtual machine.
Linux
[fno@fnorhel]$ sudo ./FlexNetOperations_2020-R1_installer.bin
Preparing to install
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH environment variable. You must install a VM prior to running this program.
Solution
The java version should be automatically picked by the installer. For Oracle JDK if java is installed using a JDK installer then FNO installer will pick that JDK. If oracle JDK is a zip distributable then JAVA_HOME needs to be set.
In the case of open-JDK JAVA_HOME must be set for the installer to pick
For Windows
- Downloaded the OpenJDK zip file.
- extracted it to
C:\Program Files\Java\ - set the system environment variable JAVA_HOME as "
C:\Program Files\Java\jdk1.8.0_211" - set the system path variable as "
C:\Program Files\Java\jdk1.8.0_211\bin" - Go to directory "
C:\Program Files\Java\jdk1.8.0_211\bin" and executed "java -version" to see if Java is fine. - Go to the home directory and again executed "java -version" to see JAVA_HOME variable picked up by the system.
- Go ahead with the installation of FNO and it worked fine.
For Linux
Make sure you set the JDK path in /etc/profile too
for eg : add the below line in /etc/profile ->
export PATH=$PATH:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.el7_7.x86_64/bin
If we Have multiple JDK( jdk 8 and 11) and verify which one installer picks
The installer should only pick JDK 8 if using oracle JDK.
NOTE: If using open JDK 8 specify java while installing using LAX_VM. For open-JDK installer won't pick by default since open-JDK doesn't come as an installer so there won't be any registry entry for that. If LAX VM is not passed then the installer would pick from JAVA_HOME
For Windows
FlexNetOperations_2020-R1_installer.exe LAX_VM "C:\Program Files\Java\java-1.8.0-openjdk-1.8.0.232-3.b09.redhat.windows.x86_64\bin\java.exe"
For Linux
./FlexNetOperations_2020-R1_installer.bin LAX_VM "/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.el7_7.x86_64/jre/bin/java".
NOTE: Officially tested only with RedHat Open JDK.
Related Articles
FNO 2022.R1 installation failed with latest Java JDK on Windows Server 2022 10Number of Views Compliance Import fails with the error "Cannot open database "<Databasename>" requested by the login. The login fail… 29Number of Views Inventory server versions 2019 R2 (14.0.0) or earlier cannot handle SAP inventory gathered by beacon versions 2020 R1 (15.… 4Number of Views FlexNet Operations On-Premises error: getHibernateSession(): failed to get hibernate session :org.hibernate.exception.Gene… 23Number of Views HOTFIX: Install Fails With Error 1001 When a .NET Installer Class Component is Present in InstallShield 2015 SP1 17Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago