Tech

20121003

Using the WebLogic JarBuilder to power java client programs.

This post is a reference in how to export a full jar with all WLS libs. One good reason is to transport WLS proprietary classes into a java client application. That way a full use of WLS's libs.

Usually engineers only copy/paste the weblogic.jar, but the right way to do it, is to use the WebLogic JarBuilder tool, bellow will show you the following:

  • Creating a wlfullclient.jar for JDK 1.6 and 1.7 client applications
  • Creating a wlfullclient5.jar for JDK 1.5 client applications
wlfullclient.jar file since WLS 10.3
  1. goto: $cd WL_HOME/server/lib
  2. run: $java -jar wljarbuilder.jar
  3. On the same directory you should see this wlfullclient.jar
  4. Copy over to client application's classpath
wlfullclient.jar file for WLS 10.0
  1. goto: $cd WL_HOME/server/lib
  2. run: $java -jar wljarbuilder.jar -profile wlfullclient5
  3. On the same directory you should see this wlfullclient5.jar
  4. Copy over to client application's classpath

The WL_HOME reference to wlserver_12.1, as an example. Also keep in mind the WLS start using JDK 1.6 since WLS 10.3

ref:Using the WebLogic JarBuilder Tool

No comments:

Post a Comment