On 01 Feb 2014, at 23:20 pm, masti whoknows <masti...@yahoo.com> wrote:
> Here is simple Java code that I am using to install the EventAdmin bundle > //now install the EventAdmin: org.apache.felix.eventadmin 1.3.2 > Bundle eventAdminBundle = > framework.getBundleContext().installBundle("org.apache.felix.eventadmin"); > eventAdminBundle.start();Is this not the right way? No, as you can see from your own stacktrace, installBundle takes a location [1] which is interpreted as a URL. Alternatively, you can use the other installBundle method [2] that takes a location (which can then be anything) and an inputstream (to your bundle). That should at least get you to the next point. :) To learn more about embedding Felix, please read [3] and especially the "Host/Felix interaction" part of that document. It contains a lot of information related to what you're trying to do. Greetings, Marcel [1] http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html#installBundle(java.lang.String) [2] http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html#installBundle(java.lang.String, java.io.InputStream) [3] http://felix.apache.org/documentation/subprojects/apache-felix-framework/apache-felix-framework-launching-and-embedding.html