Error: Could not find or load main class weblogic.Server in soa12c Error: Could not find or load main class weblogic.Server in soa12c oracle oracle

Error: Could not find or load main class weblogic.Server in soa12c


I had the same problem on Weblogic 12.1.3. To resolve it try the following:

  1. Find the "startWebLogic.cmd" script:

According to your log message, check "C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain" folder, where "C:\Oracle\Middleware\Oracle_Home" - installation directory,"base_domain" - your domain name

  1. Change the Weblogic starting script

After line "set DOMAIN_HOME=..." add a new variable called MW_HOME that specifies your installation directory:

...set DOMAIN_HOME=...set MW_HOME=C:\Oracle\Middleware\Oracle_Home...

Save the file.

  1. Run your server.

Hope this help you.


It worked for me when I changed the path of WL_HOME in setDomainEnv.cmdMake sure that path points to server location. In my case it pointed to the server on access limited disc.

Copying server location to another location should help too but make sure Env. variables were changed accordingly.


This error is due to weblogic server is not getting required class files to get started.To resolve this follow the below steps.

1.Go to C:\Users\username\AppData\Roaming\JDeveloper

2.Now rename the system12.2.1.0.42.151022.0031 tosystem12.2.1.0.42.151022.0031.bak

3.Now create the domain again and configure it.Now you can start the server.

Incase the above steps is not working for you.Try to create the compact server.For steps on how to create the compact server refer the below link

https://docs.oracle.com/middleware/1213/core/SOAQS/compactdomain.htm#SOAQS220