Sunday, January 25, 2015

[Eclipse] Workbench has not been created yet. Error while creating OSGi modules.

Hi,

It was my first day with OSGi bundles and I got an error.. Workbench has not been created yet. If you have the same error, please follow the steps below to resolve it.

Step 1. Go to MANIFEST.MF and right click on it and then navigate to Run As > Run Configuration.


Step 2. Open Run Configuration.

Step 3. Uncheck All Target Platform jars. See the screenshot below.

Step 4. Now click "Add Required Bundles". Check "Only show selected" to see which jars are now selected.

Step 5. Uncheck "Only show selected" and now select the jars listed below. You can use filter to shorten the list.
Configurations after selecting jars and checking "Only show selected", should be like this .

Step 6 Now open Settings tab and check "Clear the configuration area before launching".

Step 7. Now Click Apply and Run. You should see the output.

That's it. Hope this helps.

2 comments:

Note: Only a member of this blog may post a comment.