NetWorker: NMC Fails to Open With Error "Cannot determine a valid Java Home"
Summary: NMC Fails to Open With Error "Cannot determine a valid Java Home"
Symptoms
- Oracle Java Runtime Environment (JRE) is used instead of NetWorker Runtime Environment (NRE)
- The NetWorker Management Console (NMC) fails to open with the error: "Cannot determine a valid Java Home"
- This issue may not appear on all hosts accessing the NMC.
Cause
When the NMC is launched, JAVA command javaws.exe is run on the host you are accessing the NMC from. The javaws.exe file is in the Java installation’s bin directory. Issues may occur if an old javaws.exe file remains from a previous installation. In this instance, the operating system is using the wrong javaws.exe to launch the NMC. For example, Java 8 '181' is installed, but '171' is launched instead:
Resolution
Option One:
The preferred runtime environment for NetWorker is the NetWorker Runtime Environment (NRE). Install and configure NRE on the hosts accessing the NMC.
NetWorker Runtime Environment (NRE): Introduction and Installation
If this problem is observed on systems where NRE is installed, check to see if the host also has Oracle Java Runtime Environment (JRE) installed. If Oracle JRE is installed, consult with the system administrator if it can be removed to prevent any conflicts with NRE.
Option Two:
The following information can be found in the NetWorker Installation Guide: https://www.dell.com/support/product-details/product/networker/docs
Warning: unable to detect Java Runtime Environment
This message appears when the JRE is not installed on the NMC client.
About this taskFor Windows only, the JRE version that is installed on the Console client does not match the Microsoft Internet Explorer version. This message appears on 64-bit Windows systems when you use one of the following combinations:
- 64-bit version of the browser to connect to the NMC server, but the 32-bit version of JRE is installed.
- 32-bit version of the browser to connect to the NMC server, but the 64-bit version of JRE is installed.
To resolve this issue:
- Install JRE on the NMC client.
- For Windows only, install the correct JRE program for the installed Microsoft Internet Explorer version.
- For the 32-bit version of the browser, install the 32-bit version of JRE.
- For the 64-bit version of the browser, install the 64-bit version of JRE.
Use the following procedure to determine the Microsoft Internet Explorer version on the Windows NMC client.
Steps:
- Right-click the Microsoft Internet Explorer shortcut and select Properties.
- Review the Target Path field.
The target path is on of the following locations:
C:\Program Files (x86)\Internet Explorer\for the 32-bit version of Microsoft Internet Explorer.C:\Program Files\Internet Explorer\for the 64-bit version of Microsoft Internet Explorer.
Ensure that the correct javaws.exe is used by the operating system when launching the NMC:
- Confirm which version of JAVA is installed on your system, open Configure Java.
b. Select View:
c. In the Java Runtime Environment Settings window, check both the User and System tabs. There should only be one instance of JAVA installed. Make note of the JAVA version and the installation location. The checkbox indicates that this version of JAVA is enabled.
- Open a Windows File Explorer and navigate to C:\
javaws.exe
b. As per step 1, c,
javaws.exe should only appear under the installation path shown in the JAVA Control Panel.
c. If multiple javaws.exe files appear, delete the ones that are not associated with the current Java installation path (step 1, c)
- Return to the Java Control Panel
b. In the Temporary Files Settings window, select Delete Files.
c. In the Delete Files and Applications window, check Installed Applications and Applets (all three boxes should be checked):
e. Close the Java Control Panel.
- Open a Web Browser and navigate to
https://nmc_servername:9000, specifying your NMC server's hostname or IP address.
b. Log in to the NMC to confirm access, a new NMC shortcut should be placed on the desktop.
c. Minimize the NMC and test launching it from the newly created desktop shortcut.
For additional instructions, see: NetWorker: How To Clear Java Cache, enable Java Console and Debugging (Oracle Java)
Additional Information
You can confirm that the issue is isolated to JAVA by launching the NMC from the JAVA installation dir. For Example:
cd to your JAVA installation. The JAVA \bin directory contains javaws.exe. When running the javaws.exe command, ensure to specify your NMC server's resolvable hostname or IP address.
If the above workaround works, this confirms that there is no issue with NetWorker. This issue is with how JAVA commands are being run by the operating system.