Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » NoClassDefFoundError when accessing libraries in the JRE's ext folder
NoClassDefFoundError when accessing libraries in the JRE's ext folder [message #16239] Wed, 13 August 2008 13:27 Go to next message
Eclipse User
Originally posted by: tom.seidel.spiritlink.de

Hi,

I have a small problem with the security extension that are shipped by
the jdk. In general it's not possible to use classes which are located
in the sun/security package, so I created an access rule which grants
the bundle access to the related classes.

If I want to launch my RCP, I get the following runtime error:
java.lang.NoClassDefFoundError: sun/security/pkcs11/SunPKCS11
although the sunpkcs11.jar is located under the JRE System Library Build
Path Entry.

Does anybody know what I'm missing?

Thanks in advance,
Tom
Re: NoClassDefFoundError when accessing libraries in the JRE's ext folder [message #16281 is a reply to message #16239] Wed, 13 August 2008 16:23 Go to previous messageGo to next message
Eclipse User
Originally posted by: tom.seidel.spiritlink.de

Ok, found it. It's more an OSGi classloading issue
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=30919)

Tom Seidel schrieb:
> Hi,
>
> I have a small problem with the security extension that are shipped by
> the jdk. In general it's not possible to use classes which are located
> in the sun/security package, so I created an access rule which grants
> the bundle access to the related classes.
>
> If I want to launch my RCP, I get the following runtime error:
> java.lang.NoClassDefFoundError: sun/security/pkcs11/SunPKCS11
> although the sunpkcs11.jar is located under the JRE System Library Build
> Path Entry.
>
> Does anybody know what I'm missing?
>
> Thanks in advance,
> Tom
>
>
Re: NoClassDefFoundError when accessing libraries in the JRE's ext folder [message #576297 is a reply to message #16239] Wed, 13 August 2008 16:23 Go to previous messageGo to next message
Tom Seidel is currently offline Tom Seidel
Messages: 90
Registered: July 2009
Member
Ok, found it. It's more an OSGi classloading issue
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=30919)

Tom Seidel schrieb:
> Hi,
>
> I have a small problem with the security extension that are shipped by
> the jdk. In general it's not possible to use classes which are located
> in the sun/security package, so I created an access rule which grants
> the bundle access to the related classes.
>
> If I want to launch my RCP, I get the following runtime error:
> java.lang.NoClassDefFoundError: sun/security/pkcs11/SunPKCS11
> although the sunpkcs11.jar is located under the JRE System Library Build
> Path Entry.
>
> Does anybody know what I'm missing?
>
> Thanks in advance,
> Tom
>
>
Re: NoClassDefFoundError when accessing libraries in the JRE's ext folder [message #639300 is a reply to message #576297] Mon, 15 November 2010 23:55 Go to previous message
Steve Elsemore is currently offline Steve Elsemore
Messages: 9
Registered: July 2009
Junior Member
Hi Tom,

I'm also trying to use the SunPKCS11 class in my plugin, and experiencing the same problem. I read through the issue that you mentioned:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=30919

. . . but I'm still not sure what the actual solution is. Can anybody summarize what it is I need to do to use a class from the sun.security.pkcs11 package in my plugin?

Thanks!

Steve
Previous Topic:documentation on "org.eclipse.pde.core.BinaryRepositoryProvider"
Next Topic:No .eclipseproduct after build
Goto Forum:
  


Current Time: Sat Sep 20 08:14:53 GMT 2014

Powered by FUDForum. Page generated in 0.01753 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software