Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] javax packages not available

Hi,

You should post such questions on the equinox newsgroup:

http://www.eclipse.org/newsportal/thread.php?group=eclipse.technology.equinox

You need to also import the package in your bundle:

Import-Package: javax.naming

Also, I think that this package is already provided in the default JDK
profile, so no need to change org.osgi.framework.system.packages property.

BR,
--
Danail Nachev
Senior Software Engineer/Development Tools
ProSyst Labs EOOD
-------------------------------------------------
stay in touch with your product.
-------------------------------------------------

Srijith Kochunni wrote:
> 
> 
> Hi All,
> 
> 
> 
>                 I am starting a bundle in which I use the JNDI packages
> and I get an exception which says
> 
>                 java.lang.NoClassDefFoundError: javax/naming/InitialContext
> 
> 
>                I found in some of the discussion forums that this
> happens because the javax packages are not part of the OSGi Java runtime
> and thus the error. I found this information here
> _/http://docs.codehaus.org/display/JETTY/OSGi+Tips/_
> <http://docs.codehaus.org/display/JETTY/OSGi+Tips> which says that you
> must specify the javax packages in comma separated list as part of
> org.osgi.framework.system.packages property in the config.ini. I tried
> this, but I still get the same error.?
> 
> 
>               Can someone please tell me how I must make javax packages
> available within the OSGi runtime. ? Any help in this regard would be
> much appreciated.
> 
> 
> Thanks,
> 
> Srijith.
> 
> 
>               
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> equinox-dev mailing list
> equinox-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/equinox-dev


Back to the top