Search code examples
oracleweblogicweblogic11g

weblogic.Deployer location


I'm using WebLogic Server version 10.3.6.0 and have been tasked with writing some scripts to automatically deploy Java applications.

I'm looking at the documentation for weblogic.Deployer but when I try and run it, I get the following error:

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

I have run the setWLSEnv.sh script in server/bin of the Server's installation directory, which sets PATH and CLASSPATH environment variables. My understanding was that weblogic.Deployer was part of server/lib/weblogic.jar, and that is being set in the script as part of the CLASSPATH variable.

How could I find out where the weblogic.Deployer class is located?

Thanks in advance for any assistance.


Solution

  • Got it - just need to specify the classpath variable when executing the script:

    java -cp $CLASSPATH weblogic.Deployer