"not recognized" Error for a Java Based Probe

book

Article ID: 34385

calendar_today

Updated On:

Products

DX Infrastructure Management NIMSOFT PROBES

Issue/Introduction

 Error:  'java' is not recognized as an internal or external command, operable program, or batch file
 
 
 

Cause

 This is a common error seen in the logs of older probes which have not been updated in recent months to reflect the new Nimsoft java_jre package environment.

Environment

Release: CNMSPP99000-7.6-Unified Infrastructure Mgmt-Server Pack-- On Prem
Component:

Resolution

 Nimsoft packages our own 'java_jre' which appears as if it were a probe in the archive.  This was to support the Nimsoft java-based probe environment.
 To resolve this issue, add the ‘java_jre’ package from the archive to the affected robot.
 

Additional Information

 Typically, you need to only review the runprobe.bat to determine the cause of the issue.
 Most runprobe.bat files will first reference a probe_env.bat file which looks like this:
 REM This file has been automatically generated.
 REM Do not edit (any changes will be overwritten.)
 set JAVA_HOME=%NIM_ROOT%\%NIM_JRE_HOME%
 set JAVA_OPTS=-Xmx256m -Xms32m
 set JAVA=%JAVA_HOME%\bin\java.ex
 
The runprobe.bat file will look like this (notice the call to probe_env.bat):
 @echo off
 call probe_env.bat
 set TMP_LOG=%NIM_PROBE_NAME%.tmp
 "%JAVA%" %JAVA_OPTS% -jar %NIM_PROBE_NAME%.jar %1 %2 %3 %4 %5 >%TMP_LOG% 2>&1
 type %TMP_LOG% >> %NIM_PROBE_LOGFILE%
 
Attached are the actual examples described above.  See the "Information" tab.

Attachments

1558535667160TEC000002482.zip get_app