The profile is selected based on the
value of java.specification.version. I would not recommend changing
the profile in org.eclipse.osgi to export an additional package from the
VM. Instead you should create a framework fragment (see section 3.15
of the OSGi specification). A framework fragment bundle (or extension
bundle) can be used to export additional packages from the VM. For
example, if you need to export the "sun.print" package you could
create a fragment bundle with the following bundle manifest.
The fragment bundle would not actually
contain any java code it would just be a jar with a single /META-INF/MANIFEST.MF
file used to add a new export to the system bundle.
You could also use the osgi.java.profile
property to point the framework to your own profile. Search for osgi.java.profile
in Eclipse help for more information..
Pierre Parrend <pierre.parrend@xxxxxxxxxxxx> Sent by: equinox-dev-bounces@xxxxxxxxxxx
01/19/2007 07:59 AM
Please respond to
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>
[equinox-dev] system bundle package
I am new to equinox, and I'd like to port a utility I am currently building
signing and publishing bundles on the platform.
I need to export some extra packages from the system bundle.
However, when I add package export to the 'J2SE-1.5.profile' file, they
appear to be exported inside the platform (they do not appear in the console
when I type 'packages 0'). How can I make them available ?
Moreover, I have not found where the '*.profile' file to be used is selected.
Is it done according to the jvm version ?
thank for the information
laboratoire CITI, 21, Av. Jean Capelle
69621 Villeurbanne Cedex
equinox-dev mailing list