Osgi Jitsi包括用于定制的外部jar

Osgi Jitsi包括用于定制的外部jar,osgi,apache-felix,jitsi,felix-dependency-manager,Osgi,Apache Felix,Jitsi,Felix Dependency Manager,目前我正在进行开源Jitsi的定制工作。不知怎的,我想添加第三方jar进行定制 我尝试了很多,包括第三方jar,但我面临着这个错误 所以,请帮助我摆脱这个错误,或者提供一些关于添加第三方jar的指导 Auto-properties install: reference:file:sc-bundles/commons-vfs2-2.0.jar (org.osgi.framework.BundleException: Unable to cache bundle: reference:file:sc

目前我正在进行开源Jitsi的定制工作。不知怎的,我想添加第三方jar进行定制

我尝试了很多,包括第三方jar,但我面临着这个错误

所以,请帮助我摆脱这个错误,或者提供一些关于添加第三方jar的指导

Auto-properties install: reference:file:sc-bundles/commons-vfs2-2.0.jar (org.osgi.framework.BundleException: Unable to cache bundle: reference:file:sc-bundles/commons-vfs2-2.0.jar - java.io.IOException: Referenced file does not exist: sc-bundles\commons-vfs2-2.0.jar)
     [java] org.osgi.framework.BundleException: Unable to cache bundle: reference:file:sc-bundles/commons-vfs2-2.0.jar
     [java]     at org.apache.felix.framework.Felix.installBundle(Felix.java:2876)
     [java]     at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
     [java]     at org.apache.felix.main.AutoProcessor.processAutoProperties(AutoProcessor.java:296)
     [java]     at org.apache.felix.main.AutoProcessor.process(AutoProcessor.java:79)
     [java]     at org.apache.felix.main.Main.main(Main.java:292)
     [java]     at net.java.sip.communicator.launcher.SIPCommunicator.main(SIPCommunicator.java:219)
     [java] Caused by: java.io.IOException: Referenced file does not exist: sc-bundles\commons-vfs2-2.0.jar
     [java]     at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:852)
     [java]     at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550)
     [java]     at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:153)
     [java]     at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)
     [java]     at org.apache.felix.framework.Felix.installBundle(Felix.java:2872)
     [java]     ... 5 more
自动属性安装:引用:文件:sc bundles/commons-vfs2-2.0.jar(org.osgi.framework.BundleException:无法缓存bundle:reference:文件:sc bundles/commons-vfs2-2.0.jar-java.io.IOException:引用的文件不存在:sc bundles\commons-vfs2-2.0.jar)
[java]org.osgi.framework.BundleException:无法缓存捆绑包:参考:文件:sc bundles/commons-vfs2-2.0.jar
[java]位于org.apache.felix.framework.felix.installBundle(felix.java:2876)
[java]位于org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
[java]位于org.apache.felix.main.AutoProcessor.processAutoProperties(AutoProcessor.java:296)
[java]位于org.apache.felix.main.AutoProcessor.process(AutoProcessor.java:79)
[java]位于org.apache.felix.main.main.main(main.java:292)
[java]位于net.java.sip.communicator.launcher.sipcomunicator.main(sipcomunicator.java:219)
[java]原因:java.io.IOException:引用的文件不存在:sc bundles\commons-vfs2-2.0.jar
[java]位于org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:852)
[java]位于org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550)
[java]位于org.apache.felix.framework.cache.BundleArchive.(BundleArchive.java:153)
[java]位于org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)
[java]位于org.apache.felix.framework.felix.installBundle(felix.java:2872)
[java]。。。还有5个
将JAR文件(custom.JAR)添加到lib/目录中。然后编辑两个文件,如下所示:

jitsi.eml-将以下条目添加到文件中:

<lib name="custom.jar" scope="COMPILE">
    <relative-module-cls project-related="jar://$PROJECT_DIR$/lib/custom.jar!/"/>
</lib>

nbproject/project.xml-搜索
(有两次这样的情况),并将您的jar文件登记为

<classpath mode="compile">lib/custom.jar:lib/felix.jar:[MORE JARS HERE]</classpath>
lib/custom.jar:lib/felix.jar:[这里有更多jar]

classes:lib/custom.jar:lib/felix.jar:[这里有更多jar]
编辑文件后,运行ant clean;蚂蚁清洁束;蚂蚁制造


你可以走了

它看起来像是试图从一个路径加载
commons-vfs2-2.0
(可能是您在某个地方指定的),但它不存在于该位置。@AlBlue我检查了路径,它存在于该位置,我还将它包含在类路径中。
<classpath mode="compile">classes:lib/custom.jar:lib/felix.jar:[MORE JARS HERE]</classpath>