java - 戈戈 : BundleException: An error occurred trying to read the bundle in OSGi with Equinox

标签 java eclipse maven osgi osgi-bundle

我根据this创建OSGI包教程,但是当我尝试使用以下命令安装 bundle 时:

osgi> install file:/<path>/sample01-1.0.0.jar 

它将显示此错误:

 Hello World...!
 osgi> install file:/sample01-0.0.1-SNAPSHOT.jar<br>
 gogo: BundleException: An error occurred trying to read the bundle<br>
 osgi> "

有什么问题吗?这是我的第一个 OSGI 包。

最佳答案

对于 Windows:

osgi> install file:///d://dir1//dir2//file.jar

对于 Linux:

您必须首先检查 jar 文件是否设置了适当的访问权限。

osgi> install file:///home//user//osgi//plugin.jar

关于java - 戈戈 : BundleException: An error occurred trying to read the bundle in OSGi with Equinox,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24482138/

相关文章:

eclipse - 制作我自己的 Eclipse 介绍页面

java - maven 。轮廓。属性和 System.getProperty()

maven - 使用 Hibernate4/JPA 2.1 在 MAVEN 构建中生成 DDL 脚本

java - war-package 内的依赖关系与共享库内的依赖关系

java - 延迟对java webservice的多次调用

java - 导入 javax.servlet 时遇到问题

java - 将数据设置为来自一些不同 R.array(XML) 的自定义 ListView 适配器

java - 在每个方法的开头检查 NullPointerException

java - 在 Windows 上使用 Chef 安装 JDK 1.7 和 Eclipse

java - 替换eclipse中的android.jar