This section describes how to install the SAT runtime bundles such that they are available to your Eclipse development environment. The SAT runtime is provided as a set of OSGi bundles in JAR format. How you install the bundles will be dictated by the development tools you are using and the configuration of your development-time testing environment. While there are many possible ways to install and use the SAT runtime bundles, this section describes just one possible way.
The SAT runtime is packaged as an Eclipse update site, this is intended
for scenarios where you wish to update your runtime target device
using Eclipse's
Update Configurator.
While using the SAT runtime's update site to install the bundles into the
Eclipse IDE is harmless, it is not recommended.
It is recommended that the Eclipse Plug-in Development Environment (PDE) be used for developing OSGi bundles. The PDE defines the concept of a target platform that is used when launching the OSGi platform using an Equinox OSGi Framework launcher. Using a target platform to test your OSGi application is recommended since it allows you to accurately define the bundles that will be available when your application is deployed on a runtime target device.
C:\Eclipse3.2.2\targets\equinox\eclipse.
Eclipse3.2.2/
targets/
equinox/
eclipse/
features/
...Equinox Features...
plugins/
...Equinox Plug-ins...
Eclipse3.2.2 folder create a folder called
plugins. This is where additional runtime bundles will
be placed, allowing you to keep the PDE target platform and Equinox
runtime pristine. Doing so makes it easy to upgrade the Equinox
runtime bundle and the additional runtime bundles.
plugins folder create a folder called
sat-runtime and within that create a folder called
eclipse. Copy the SAT runtime features and plugins into
this folder. Next we're going to create a link from the target
platform to this folder. The PDE target platform should look like this:
Eclipse3.2.2/
plugins/
sat-runtime/
eclipse/
features/
...SAT Features...
plugins/
...SAT Plugins...
targets/
equinox/
eclipse/
features/
...Equinox Features...
plugins/
...Equinox Plug-ins...
links folder. This
folder is special in that it is recognized by the Eclipse IDE, which
processes each .link file it contains.
links folder create a file called
sat-runtime.link that contains the following line:
path=C:/Eclipse3.2.2/plugins/sat-runtime
This file tells the Eclipse IDE to consider the specified path as part
of the PDE target platform. The PDE target platform should look like
this:
Eclipse3.2.2/
plugins/
sat-runtime/
eclipse
features/
...SAT Features...
plugins/
...SAT Plugins...
targets/
equinox/
eclipse/
features/
...Equinox Features...
links/
sat-runtime.link
plugins/
...Equinox Plug-ins...
Copyright © 2001, 2007 IBM Corporation and others. All Rights Reserved.