Tik*_*aka 2 java eclipse osgi maven osgi-bundle
我根据本教程创建了OSGI包 ,但是当我尝试使用以下命令安装bundle时:
osgi> install file:/<path>/sample01-1.0.0.jar
Run Code Online (Sandbox Code Playgroud)
它会显示此错误:
Hello World...!
osgi> install file:/sample01-0.0.1-SNAPSHOT.jar<br>
gogo: BundleException: An error occurred trying to read the bundle<br>
osgi> "
Run Code Online (Sandbox Code Playgroud)
问题是什么?这是我的第一个OSGI包.
小智 6
对于Windows:
osgi> install file:///d://dir1//dir2//file.jar
Run Code Online (Sandbox Code Playgroud)
对于Linux:
您必须首先检查jar文件是否设置为适当的访问权限.
osgi> install file:///home//user//osgi//plugin.jar
Run Code Online (Sandbox Code Playgroud)