關於引用WebLogic.jar時遇到NoClassDefFoundError問題的解決方法

B Using the WebLogic JarBuilder Tool

This chapter describes how to create the wlfullclient.jar using the WebLogic JarBuilder tool.

Note:

If you run the WebLogic Full Client from a <java> task that is invoked in an Ant script, see Running the WebLogic Full Client in a Non-Forked VM, for important information regarding the RSA Crypto-J library, which is included in the wlfullclient.jar manifest classpath.

Creating a wlfullclient.jar for JDK 1.7 client applications

Use the following steps to create a wlfullclient.jar file for a JDK 1.7 client application:

  1. Change directories to the server/lib directory.

    cd WL_HOME/server/lib
    
  2. Use the following command to create wlfullclient.jar in the server/lib directory:

    java -jar wljarbuilder.jar
    
  3. You can now copy and bundle the wlfullclient.jar along with cryptoj.jar with client applications. The wlfullclient.jar and cryptoj.jar must be kept in the same directory as the wlfullcient.jar references cryptoj.jar in its manifest Class-Path.

  4. Add the wlfullclient.jar to the client application's classpath.

Note:

JDK 1.7 introduces new manifest file attributes in Update 25 (JDK 7u25). Only the main jar of the Applet or Web Start deployment requires the new permissions attribute. Do not modify the cryptoj.jar which is a licensed signed jar. See http://www.oracle.com/technetwork/java/javase/7u25-relnotes-1955741.html#jar-attOpens a new window.

Creating a wlfullclient.jar for JDK 1.6 client applications

Use the following steps to create a wlfullclient.jar file for a JDK 1.6 client application:

  1. Change directories to the server/lib directory.

    cd WL_HOME/server/lib
    
  2. Use the following command to create wlfullclient.jar in the server/lib directory:

    java -jar wljarbuilder.jar
    
  3. You can now copy and bundle the wlfullclient.jar along with cryptoj.jar with client applications. The wlfullclient.jar and cryptoj.jar must be kept in the same directory as the wlfullcient.jar references cryptoj.jar in its manifest Class-Path.

  4. Add the wlfullclient.jar to the client application's class

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章