【发布时间】:2014-07-11 02:36:33
【问题描述】:
我正在尝试运行java project jsignpdf,在导入项目后,我添加了一些必需的库。
现在运行项目时出现类似错误
taskdef class net.sourceforge.jarbundler.JarBundler cannot be found
using the classloader AntClassLoader[]
BUILD FAILED (total time: 0 seconds)
在我的 build.xml 中,我有以下相关内容:
<taskdef name="jarbundler" classname="net.sourceforge.jarbundler.JarBundler">
<classpath>
<pathelement location="${jarbundler.jar}"/>
</classpath>
</taskdef>
那么如何解决呢?
【问题讨论】:
-
您需要将这些 jar 添加到您的项目中,并将它们添加到您的构建和类路径中
-
这是一个 Eclipse 项目 - 将其导入 Eclipse(“导入现有项目”)