Creating A Plugin

First of all you will need to install db4o_osgi into the Eclipse environment. You can do that by copying db4o_osgi.jar into ECLIPSE_HOME\plugins folder, restart Eclipse, then switch to Plug-Ins view, select db4o-osgi plug-in, right-click and select "Import As->Source Project".

If you do not want to do that, you can open Eclipse and create a usual java project from the db4o_osgi sources.

Now you are ready to create a new plug-in project.

You might be asked to switch to "Plug-in development" perspective, which you can surely do.

You should see a MemoPlugin window opened in the environment. This window represents important plug-in properties and it can be opened by double-clicking plugin.xml file in Package Explorer.

You can use the tab-scroll at the bottom to navigate to different pages. Please, open the "Overview" page of the plugin.xml window and review the information presented there. Note, that this page can be used to start testing and debugging (see Testing paragraph).

Our plug-in will depend on db4o_osgi bundle; therefore we must define this dependency somewhere. Select "Dependencies" hyperlink in the "Plug-in Content" paragraph. (You can gain the same effect by selecting "Dependencies" tab page.) In the "Required Plug-ins" list click "Add" and select "db4o-osgi".

Please, note that you should not specify Java Build path as in a normal Java project, otherwise the environment will find duplicates in your project dependencies.