我正在开发一个 Eclipse 插件,我需要使用 Jaxen。
我创建了一个“来自现有 JAR 存档的 Eclipse 插件”,并将其添加到我的插件依赖项中。但运行所有,我收到一个“java.lang.ClassNotFoundException:org.jaxen.JaxenException”。
我在哪里做错了?
Ps:我在 Debian Wheezy 上使用 Eclipse Juno。使用 dom4j.jar 和 log4j.jar 的方法相同。
在这里编辑 我的 Jaxen 插件 MANIFEST.MF
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Jaxen
Bundle-SymbolicName: org.jaxen
Bundle-Version: 1.1.4
Export-Package: org.jaxen;uses:="org.jaxen.saxpath,org.jaxen.expr",
org.jaxen.dom;uses:="org.jaxen,org.w3c.dom",
org.jaxen.dom4j;uses:="org.jaxen,org.dom4j.io",
org.jaxen.expr;uses:="org.jaxen,org.jaxen.expr.iter",
org.jaxen.expr.iter;uses:="org.jaxen",
org.jaxen.function;uses:="org.jaxen",
org.jaxen.function.ext;uses:="org.jaxen",
org.jaxen.function.xslt;uses:="org.jaxen",
org.jaxen.javabean;uses:="org.jaxen",
org.jaxen.jdom;uses:="org.jaxen,org.jdom",
org.jaxen.pattern;uses:="org.jaxen,org.jaxen.expr",
org.jaxen.saxpath,
org.jaxen.saxpath.base;uses:="org.jaxen.saxpath",
org.jaxen.saxpath.helpers;uses:="org.jaxen.saxpath",
org.jaxen.util;uses:="org.jaxen",
org.jaxen.xom;uses:="org.jaxen",
org.w3c.dom
Bundle-RequiredExecutionEnvironment: JavaSE-1.7