Libraries in WebLogic

Discussions

General J2EE: Libraries in WebLogic

  1. Libraries in WebLogic (2 messages)

    I have an instance of WebLogic 8.1.
    There are two application there: App1.ear and App2.ear on server. Is it possible (or how) to add library (utils.jar) thus that it become visible in both applications?
    I don't want to add this library to each application.

    Threaded Messages (2)

  2. Libraries in WebLogic[ Go to top ]

    Yes you can add a Library specifying its location in the setDomainEnv.sh file in your domain directory. You can add it before the CLASSPATH, like this:

    # SET THE UTILS.JAR FILE INTO THE CLASSPATH

    echo "Setting utils.jar"
    UTILS_CLASSPATH="${UTILS_CLASSPATH}:/home/user/weblogic/projects/lib/utils.jar"

    # SET THE CLASSPATH

    CLASSPATH="${PRE_CLASSPATH}:${WEBLOGIC_CLASSPATH}:${CLASSPATH}:${POST_CLASSPATH}:${WLP_POST_CLASSPATH}:${UTILS_CLASSPATH}"
    export CLASSPATH
    .....

    You need to add at the end of the CLASSPATH your new UTILS_CLASSPATH.

    And that's it.
  3. Thanks. But I'm looking for more simple solution (using WL console, etc).