Use ct-ZADBService and explicit MfClientLibPath so SMC restart finds client JARs. Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
783 B
Batchfile
29 lines
783 B
Batchfile
@echo off
|
|
REM Prueft ob JMSConnectorAddress mit den Sonic-Client-JARs ladbar ist.
|
|
set LIB=C:\DEV\MQ10.0\lib
|
|
set JAVA=C:\Program Files (x86)\Java\jre1.8.0_501\bin\java.exe
|
|
|
|
if not exist "%JAVA%" (
|
|
echo Java nicht gefunden: %JAVA%
|
|
exit /b 1
|
|
)
|
|
if not exist "%LIB%\mfcontext.jar" (
|
|
echo mfcontext.jar fehlt unter %LIB%
|
|
exit /b 1
|
|
)
|
|
|
|
set CP=%LIB%\mgmt_client.jar;%LIB%\mgmt_config.jar;%LIB%\sonic_mgmt_client.jar;%LIB%\mfcontext.jar;%LIB%\sonic_Client.jar;%LIB%\sonic_Client_ext.jar
|
|
|
|
echo Java: %JAVA%
|
|
echo CP: %CP%
|
|
echo.
|
|
|
|
"%JAVA%" -cp "%CP%" -version
|
|
echo.
|
|
|
|
"%JAVA%" -cp "%CP%" com.sonicsw.mf.jmx.client.JMSConnectorAddress 2>&1
|
|
echo ExitCode=%ERRORLEVEL%
|
|
echo.
|
|
echo Erwartet: oft "main method" / NoSuchMethodError ODER Usage - Hauptsache KEIN ClassNotFoundException.
|
|
exit /b 0
|