创建runnable jar时找不到外部库

时间:2014-05-11 12:50:18

标签: java

我有一个名为RemoteBluetoothServer的Java类,使用bluecove-2.1.0外部库 我试图创造一个可运行的罐子 在this two个帖后,我创建了这个ant脚本:

<jar jarfile="${client_deploy_dir}/RemoteBluetoothServer.jar"
     basedir="${client_work_dir}/compiled">
   <manifest>
      <attribute name="Main-Class" value="RemoteBluetoothServer.Main"/>
      <attribute name="Class-Path" value="bluecove-2.1.0.jar"/>
   </manifest>
</jar>

我还将manifest.mf文件添加到src文件夹中:

Manifest-version: 1.0
Main-Class: RemoteBluetoothServer
Class-path: bluecove-2.1.0.jar

使用Eclipse Export创建可运行jar后,创建jar文件,并使用MyProject_lib jar文件创建bluecove-2.1.0目录。
 当我运行jar文件时,我收到错误BlueCove libraries not available

有什么想法吗?

0 个答案:

没有答案
相关问题