[英]How to properly include javax.json jar to a deployed .jar file
I'm trying to include javax.json.jar
to my project in Jdeveloper 12c IDE我正在尝试在Jdeveloper 12c IDE
javax.json.jar
包含到我的项目中
The final phillplugin.jar
includes:最终的
phillplugin.jar
包括:
META-INF
folder containing MANIFEST.MF
fileMANIFEST.MF
文件的META-INF
文件夹phillplugin
folder which includes my phillplugin.class
phillplugin.class
phillplugin
文件夹javax.json-1.0.2.jar
file javax.json-1.0.2.jar
文件phillplugin.xml
Although the server crashes because it doesn't recognize my javax.json class from the MANIFEST.MF
file with the following Error:尽管服务器崩溃是因为它无法从
MANIFEST.MF
文件中识别出我的 javax.json 类,并出现以下错误:
Unable to resolve 2.0: missing requirement [2.0] osgi.wiring.package; (osgi.wiring.package=javax.json)
This is how i'm exporting it:这是我导出它的方式:
javax.json-1.0.2.jar
javax.json-1.0.2.jar
javax.json-1.0.2.jar
javax.json-1.0.2.jar
and then im deploying it.然后我正在部署它。
Is the way i'm doing it wrong?是我做的方式不对吗?
i had to include in my MANIFEST.MF
like so: org.json;resolution:= optional,org.json.JSONObject;resolution:=optional
我必须像这样包含在我的
MANIFEST.MF
: org.json;resolution:= optional,org.json.JSONObject;resolution:=optional
Manifest-Version: 1.0
Bundle-SymbolicName: PhillPlugin
Bundle-Version: 10
Bundle-Name: PhillPlugin
Bundle-Activator: phillplugin.PhillPlugin
Bundle-ManifestVersion: 2
Import-Package: org.osgi.framework;version="1.3.0",oracle.security.am.
plugin,oracle.security.am.plugin.authn,oracle.security.am.plugin.impl
,oracle.security.am.plugin.api,oracle.security.am.common.utilities.pr
incipal,oracle.security.idm,javax.security.auth,org.json;resolution:=
optional,org.json.JSONObject;resolution:=optional
as well as the .jar
and the library
以及
.jar
和library
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.