2 Replies Latest reply on Jan 21, 2019 10:46 AM by Faisal WebLogic Wonders

    error-could-not-find-or-load-main-class-weblogic-server

    3123836

      Hi There,

      while running weblogic server (12c) getting following exception,pls advice.

      error-could-not-find-or-load-main-class-weblogic-server

       

      (see below which I ran the WL server in windows via cmd)

      C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain>startWebLogic.cmd

      '"C:\Oracle\MIDDLE~1\ORACLE~1\wlserver\common\bin\commEnv.cmd"' is not recognized as an internal or external command,

      operable program or batch file.

      .

      .

      JAVA Memory arguments: -Xms256m -Xmx1024m -XX:ReservedCodeCacheSize=50m  -XX:MaxPermSize=256m

      .

      CLASSPATH=C:\Oracle\MIDDLE~1\ORACLE~1\USER_P~1\domains\BASE_D~1\config\cajasper;;C:\PROGRA~1\Java\JDK18~1.0_1\lib\tools.jar;C:\Oracle\MIDDLE~1\ORACLE~

      1\wlserver\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\ORACLE~1\oracle_common\modules\thirdparty\ant-contrib-1.0b3.jar;C:\Oracle\MIDDLE~1\ORACLE~1\wlse

      rver\modules\features\oracle.wls.common.nodemanager.jar;;C:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server\lib\xqrl.jar;;C:\Oracle\MIDDLE~1\ORACLE~1\wlserve

      r\server\lib\ojdbc8.jar;C:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server\lib\sqljdbc.jar;C:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server\lib\derbyclient.jar;C:

      \Oracle\MIDDLE~1\ORACLE~1\wlserver\server\lib\derbynet.jar;C:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server\lib\derby.jar

      .

      PATH=C:\Windows\SYSTEM32;C:\Windows;C:\Windows\SYSTEM32\WBEM

      .

      ***************************************************

      *  To start WebLogic Server, use a username and   *

      *  password assigned to an admin-level user.  For *

      *  server administration, use the WebLogic Server *

      *  console at http:\\hostname:port\console        *

      ***************************************************

      Starting WLS with line:

      C:\PROGRA~1\Java\JDK18~1.0_1\bin\java -server   -Xms256m -Xmx1024m -XX:ReservedCodeCacheSize=50m  -XX:MaxPermSize=256m -cp C:\Oracle\MIDDLE~1\ORACLE~1

      \wlserver\server\lib\weblogic-launcher.jar -Dlaunch.use.env.classpath=true -Dweblogic.Name= -Djava.security.policy=   -da -Dplatform.home=C:\Oracle\MI

      DDLE~1\ORACLE~1\wlserver -Dwls.home=C:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server -Dwli.home=C:\Oracle\MIDDLE~1\ORACLE~1\wlserver\integration -Dweblogic

      .home=C:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server  -Dweblogic.management.discover=true  -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErro

      rsToConsole=false  weblogic.Server

      Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

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