[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] Some Packages must be imported outside of Eclipse
- From: "Richard S. Hall" <heavy@xxxxxxxxxxxxxx>
- Date: Wed, 20 Jun 2012 16:26:55 -0400
- Delivered-to: email@example.com
- User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
On 6/20/12 16:17 , . wrote:
if I start a OSGi bundle in Eclipse (Equinox) not only java.*, but
also packages like javax.* are directly available and therefore must
be not imported in the bundle manifest.
I would expect that you can import the javax.* packages, but you are
correct that you shouldn't/can't import the java.* packages.
In contrast, when I run a bundle outside of Eclipse (also in Equinox;
with startup.bat/startup.sh and config.ini) all used packages except
java.* MUST be imported, otherwise it results to Class Not Found
What is the reason why e.g. javax.* are not available outside of
Eclipse without importing them? Is it possible, e.g. with a parameter
in the config.ini, to make these packages directly available or in
other words create the same runtime environment like in Eclipse?
The reason is historical, I'd guess.
You can configure this via the org.osgi.framework.bootdelegation
framework configuration property, but I'd recommend against doing so.
Double check, but I'd expect that you can import the javax.* packages in
Equinox when running in Eclipse...you should always import everything
except java.* packages...
Thanks in advance!
equinox-dev mailing list