My Oracle Support Banner

"Secureweblogic.bat" Command Fails With ClassNotFound Exception (Doc ID 1610254.1)

Last updated on AUGUST 23, 2021

Applies to:

Enterprise Manager for Fusion Middleware - Version and later
Information in this document applies to any platform.


When executing secureWeblogic.bat, it fails with the following errors:

%DOMAIN_HOME%\ClassicDomain\bin\secureWebLogic.bat -admin_host hostname.domain -admin_port 7001 -admin_user weblogic -admin_pwd mypwd

Error message (below)
-admin_host hostname.domain -admin_port 7001 -admin_user weblogic -admin_pwd mypwd

%DOMAIN_HOME%\ClassicDomain\bin>set DOMAIN_HOME="E:

%DOMAIN_HOME%\ClassicDomain\bin>if /I -admin_host == "-help" goto PRINTHELP

%DOMAIN_HOME%\ClassicDomain\bin>. %DOMAIN_HOME%\ClassicDomain\bin\setDomainEnv.cmd
'.' is not recognized as an internal or external command, operable program or batch file.

%DOMAIN_HOME%\ClassicDomain\bin>echo "Securing FMConsole - Started"
"Securing FMConsole - Started"

%DOMAIN_HOME%\ClassicDomain\bin>E:\oracle\MIDDLE~1\JDK160~4\bin\java -classpath E:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;E:\oracle\MIDDLE~1\patch_wls1036\profiles\......(skipped)......
Caused by: java.lang.ClassNotFoundException:
       at Method)
       at java.lang.ClassLoader.loadClass(
       at sun.misc.Launcher$AppClassLoader.loadClass(
       at java.lang.ClassLoader.loadClass(
Could not find the main class:
Program will exit.


Also, there was no confirmation message logged after the command was run mentioning is the securing failed or succeeded.




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.