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
-
- goto: $cd WL_HOME/server/lib
- run: $java -jar wljarbuilder.jar
- On the same directory you should see this wlfullclient.jar
- Copy over to client application's classpath
- wlfullclient.jar file for WLS 10.0
-
- goto: $cd WL_HOME/server/lib
- run: $java -jar wljarbuilder.jar -profile wlfullclient5
- On the same directory you should see this wlfullclient5.jar
- 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
No comments:
Post a Comment