Support Diagnostic tool

Hi,
I'm trying to run the support diagnostic tool on my ELK node.
The JAVA_HOME variable is set. But i get an error that says:
" Could not find or load main com.elastic.support.diagnostics.diagnosticapp "
Please help.
Regards,
Rahul

This error is unrelated to JAVA_HOME means the jar file which contains the class is not in the classpath, ie do you use this and are the jar files in the lib folder:
"$JAVA" $DIAG_JAVA_OPTS ${DIAG_DEBUG_OPTS} -cp .:./lib/* com.elastic.support.diagnostics.DiagnosticApp "$@"

Hi Julien,
This is how the diagnostic.bat looks.

@echo off
setlocal enabledelayedexpansion

set JAVA_EXEC=java
if not defined JAVA_HOME (
set JAVA_EXEC=java
echo No Java Home was found. Using current path. If execution fails please install Java and make sure it is in the search path or exposed via the JAVA_HOME environment variable.
) else (
echo JAVA_HOME found, using !JAVA_HOME!
set JAVA_EXEC=!JAVA_HOME!\bin\java
)

if not defined DIAG_JAVA_OPTIONS (
set DIAG_JAVA_OPTIONS=-Xmx512m
)

"%JAVA_EXEC%" %DIAG_JAVA_OPTIONS% -cp .;.\lib* com.elastic.support.diagnostics.DiagnosticApp %*

endlocal

I haven't made any changes.
Was hoping this would work by default.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.