NoClassDefFound [message #270305] |
Mon, 06 September 2004 11:45  |
Eclipse User |
|
|
|
Originally posted by: jasonlosco.comcast.net
I've been looking for a solution to my problem for about a week now with
no luck. I have looked at several different threads in newsgroups and
nothing has worked for me. I'm writing a plugin the uses the javaMail
mail.jar. The error log entry is :
java.lang.NoClassDefFoundError: javax/mail/Part
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:141)
I have several declarations of object from javax.mail before my Part
declaration, but this is where it throws the error.
My plugin.xml file contains the following entry in the <runtime> tag:
<library name="mail.jar">
<export name="*"/></library>
mail.jar in in my project directory on the same level as my src directory.
I'm using Eclipse 3.0 and I do not understand why the Part interface in
mail.jar can't be found. I've tried several of the suggestions found in
other threads, such as making a plugin that contains the jars then create
a dependency, but I couldn't get that to work either. I have written
several plugins and gotten each of them to work with runtime jars, is
there something that eclipse 3.0 doesn't like about the mail jar?
thank you for any light you can shed on my situation.
jason
|
|
|
Re: NoClassDefFound [message #270520 is a reply to message #270305] |
Tue, 07 September 2004 20:26  |
Eclipse User |
|
|
|
Originally posted by: pascal.ibm.canada
Jason,
Have you checked that the javax.mail.Part class is in the mail.jar you
are including in your plugin?
I thought this kind of class would be coming from the jre.
If the class in included in your mail.jar, then check that the generated
manifest.mf file corresponding to your plugin contains an entry
indicating "javax.mail" in the provide package section
HTH,
PaScaL
Ps: waiting to see your mail client :-)
Jason wrote:
> I've been looking for a solution to my problem for about a week now with
> no luck. I have looked at several different threads in newsgroups and
> nothing has worked for me. I'm writing a plugin the uses the javaMail
> mail.jar. The error log entry is :
>
> java.lang.NoClassDefFoundError: javax/mail/Part
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
> at java.lang.Class.getConstructor0(Unknown Source)
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:141)
>
> I have several declarations of object from javax.mail before my Part
> declaration, but this is where it throws the error.
>
> My plugin.xml file contains the following entry in the <runtime> tag:
>
> <library name="mail.jar">
> <export name="*"/></library>
>
> mail.jar in in my project directory on the same level as my src directory.
> I'm using Eclipse 3.0 and I do not understand why the Part interface in
> mail.jar can't be found. I've tried several of the suggestions found in
> other threads, such as making a plugin that contains the jars then create
> a dependency, but I couldn't get that to work either. I have written
> several plugins and gotten each of them to work with runtime jars, is
> there something that eclipse 3.0 doesn't like about the mail jar?
>
> thank you for any light you can shed on my situation.
>
> jason
>
|
|
|
Powered by
FUDForum. Page generated in 0.05915 seconds