The Felix launcher doesn't support such a mechanism. If you are using the Felix launcher, then the approach you must take is to specify the Main class manually and just put your JAR files on the class path, e.g.:

   java -cp mylib.jar:./bin/felix.jar org.apache.felix.main.Main

If you are using Felix 1.4.0, then you should use the org.osgi.framework.system.packages.extra property to append any additional packages to the default value. Only use org.osgi.framework.system.packages if you want to replace the default value.

You can get the precise functionality you desire by creating your own launcher for Felix. You would need to create a launcher that constructed a class loader that contained the JARs in your directory and the felix.jar file. Then use this class loader with reflection to load and invoke the standard Felix launcher Main.main() method...I am pretty sure that would work.

-> richard

Sriharsha wrote:
I want some jars to be available for all other bundles I install in Felix run
time. In other words I need to add these jars in the boot class path.
Ideally I would like to place these common jars in a folder and configure
the folder path in Felix. Can this be achieved in Felix?
I do understand that i will have to export the packages in the
framework.system packages.
Please reply.


-----
Sriharsha


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to