gogo: BundleException: An error occurred trying to read the bundle in OSGi with Equinox

I create OSGI bundle according to this tutorial, but when I try to install bundle using:

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

it will show this error:

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

What is the problem? This is my first OSGI bundle.

Answers


For Windows:

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

For Linux:

You must first check if the jar file is set to the appropriate access permission.

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

This error occurs if the jar doesn't exist. Is the jar located in the root, because /sample... will search it in the root. Under windows it will similar to C:/sample....


Need Your Help

How do I use the Time class on hash values?

ruby hash

I am working through Chris Pine's Ruby book, and I am slightly confused why my code doesn't quite work.

How to use “this” keyword inside jquery delegate function?

jquery

I am trying to show a hidden character on mouseover using delegate.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.