关于引用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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值