Sunday, February 9, 2014

Run Eclipse Equinox (3.9 or 3.8) with minimum bundles (jars) .......

Following is how you can run equinox framework version 3.8 with minimum bundles. This is valid for 3.9 version too.(Note you need to use compatible felix bundles with 3.9 framework) 

Step 1:Download and put following 5 bundles to a directory

1. org.eclipse.osgi_3.8.2.v<version>.jar    - Equinox framework bundle 

From equinox 3.8, framework bundle don't has console it self, we need to provide felix console bundles to run osgi console commands.

2. org.apache.felix.gogo.command_0.8.0.v<version>.jar
3. org.apache.felix.gogo.runtime_0.8.0.v<version>.jar
4. org.apache.felix.gogo.shell_0.8.0.v<version>.jar

 This is optional , without following jar still you will get osgi console but you can't run, osgi command like 'ss' 'ls' etc.. you can use only command limited felix and gogo scopes like, felix:<command> and gogo:<command>.

5.org.eclipse.equinox.console_1.0.0.v<version>.jar

Step 2 : open the terminal and go to above directory and run following command.
'java -Dosgi.bundles=org.apache.felix.gogo.command_0.8.0.v<version>.jar@start,org.apache.felix.gogo.shell_0.8.0.v<version>.jar@start,org.apache.felix.gogo.runtime_0.8.0.v<version>.jar@start,org.eclipse.equinox.console_1.0.0.v<version>.jar@start -jar org.eclipse.osgi_3.8.2.v<version>.jar -console'

You will see "osgi>" in terminal, if so here we go we are in osgi console, now you can run osgi commands. Type help on osgi console or check this post to find all available osgi commands or this for 3.9.1 commands

0 comments:

Post a Comment

Sample Text

Website counter

Categories