"not recognized" Error for a Java Based Probe

Document ID : KB000034385
Last Modified Date : 14/02/2018
Show Technical Document Details
 Error:  'java' is not recognized as an internal or external command, operable program, or batch file
 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.
 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_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
 "%JAVA%" %JAVA_OPTS% -jar %NIM_PROBE_NAME%.jar %1 %2 %3 %4 %5 >%TMP_LOG% 2>&1
Attached are the actual examples described above.  See the "Information" tab.
File Attachments: