You will get this error while running emcli.
Follow the below steps to fix.
create a directory
D:\EMCLI
Set environment
set JAVA_HOME=D:\app\product\Mware12104\jdk16\jdk
set PATH=%JAVA_HOME%\bin;%PATH%
java -jar emcliadvancedkit.jar client -install_dir=D:\EMCLI
cd D:\EMCLI
set EMCLI_STATE_DIR=D:\EMCLI
from existing middleware_home/bin run below
emcli setup -url=https://localhost.com:7800/em -username=sysman -trustall -autologin -dir=D:\EMCLI
emcli sync
Follow the below steps to fix.
create a directory
D:\EMCLI
Set environment
set JAVA_HOME=D:\app\product\Mware12104\jdk16\jdk
set PATH=%JAVA_HOME%\bin;%PATH%
java -jar emcliadvancedkit.jar client -install_dir=D:\EMCLI
cd D:\EMCLI
set EMCLI_STATE_DIR=D:\EMCLI
from existing middleware_home/bin run below
emcli setup -url=https://localhost.com:7800/em -username=sysman -trustall -autologin -dir=D:\EMCLI
emcli sync