Skip navigation.
Downloads | Product Documentation | Support

Administration Console Online Help

# Add startup and shutdown classes to the classpath

The startup or shutdown class must be on the classpath of each server to which it is assigned. To add a class to a server's classpath, do one of the following:

- If you use a script to start a server instance, open the script in a text editor. In the command that sets the classpath, add the pathname of the directory that contains your class's root package. Then restart the server.

  For example, you create a startup class named `StartBrowser` in a package named `com.mycompany.startup`. You archive the class file in a JAR file named `c:`\`myDomain\src\myJAR.jar`. The start script for your server must add `c:\myDomain\src\myJAR.jar` to the server's classpath.

- If you use the Node Manager to start a server instance, do the following on each server that runs the startup class or shutdown class
  1. In the Administration Console, expand Environment and select Servers.
  2. On the Servers page, click on the server name.
  3. On the Configuration tab, click the Remote Start tab.
  4. In the Classpath field, enter the pathname for the classes that WebLogic Server requires to be on the classpath. Use an absolute pathname or a pathname that is relative to the Node Manager's home directory. Separate multiple classes with the type of separator that your operating system or shell requires. For example, on Windows, use `;` (semicolon) and in a BASH shell, use `:` (colon).

     For example, `weblogic.jar` must be on the classpath. For a complete list, refer to Setting the Classpath.

  5. In the Classpath field, add the pathname for your class or for a JAR file that contains your class.

     For example, you create a startup class named `StartBrowser` in a package named `com.mycompany.startup`. You archive the class file in a JAR file named `c:\myDomain\src\myJAR.jar`. In this case, the Classpath field should contain the following value:

         c:\bea\weblogic90\server\lib\weblogicsp.jar;c:\bea\weblogic90\server\lib\weblogic.jar;c\myDomain\src\myJAR.jar