Jump to: navigation, search

EclipseLink/Installing EclipseLink OSGi in PDE

Installing EclipseLink OSGi in PDE

For OSGi development, it is strongly recommended that you create a target platform and install the necessary features into it. This procedure describes how to create a new target platform that includes EclipseLink.

  • Open 'Window>Preferences' and navigate to 'Plug-in Development>Target Platform'.
  • Select 'Add..' to create a new target platform definition.
EclipseLinkInstallingInPDE-1.png
  • Select 'Nothing' to start with an empty target and then click 'Next'.
EclipseLinkInstallingInPDE-2.png
  • On the 'Locations' tab select 'Add..'.
EclipseLinkInstallingInPDE-3.png
  • Select 'Software Site' and then click 'Next'.
EclipseLinkInstallingInPDE-4.png
  • Choose the Helios update site from the 'Work with:' drop down of P2 repositories.
  • Once the feature list has been populated, from the 'EclipseRT Target Platform Components' category check 'EclipseLink Target Components' and click 'Finish'.
EclipseLinkInstallingInPDE-5.png
  • Change the name of your new target platform to reflect its contents, e.g., 'EclipseLink 2.1'.
EclipseLinkInstallingInPDE-6.png
  • Finally, select your newly defined target as your default and click 'Ok'.
EclipseLinkInstallingInPDE-7.png
  • In the Plug-ins view of the Plug-in Development perspective you will see all of the bundles in your target platform. Note that bundles EclipseLink requires have also been downloaded and installed by P2, e.g., Equinox (org.eclipse.osgi).
EclipseLinkInstallingInPDE-8.png


You are now ready to build OSGi applications with EclipseLink in PDE!

Check out some OSGi JPA examples to get started.