Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » java.lang.NoClassDefFoundError
java.lang.NoClassDefFoundError [message #894353] Sun, 08 July 2012 15:47 Go to next message
csaba toth is currently offline csaba tothFriend
Messages: 4
Registered: March 2011
Junior Member
1. I have an EJB project and a plug-in project in the same workspace
2. I set the Java Build Path/project for the plug-in project.
3. In the plug-in project I instantiated an entity class (declared in the EJB project) - No error message
4. I built the plug-in project
5. I Run it
Result: An error message appeared: java.lang.NoClassDefFoundError: ...

How can I fix this problem?
Re: java.lang.NoClassDefFoundError [message #894359 is a reply to message #894353] Sun, 08 July 2012 16:26 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3248
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 07/08/2012 09:47 AM, csaba toth wrote:
> 1. I have an EJB project and a plug-in project in the same workspace
> 2. I set the Java Build Path/project for the plug-in project.
> 3. In the plug-in project I instantiated an entity class (declared in
> the EJB project) - No error message
> 4. I built the plug-in project
> 5. I Run it
> Result: An error message appeared: java.lang.NoClassDefFoundError: ...
>
> How can I fix this problem?

Identify the class that's missing.
Identify the JAR that's supposed to provide it.
Ensure that this JAR is included in your classpath (see Build Path).
Re: java.lang.NoClassDefFoundError [message #894391 is a reply to message #894353] Mon, 09 July 2012 04:00 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1348
Registered: July 2009
Senior Member
On 07/08/2012 10:47 AM, csaba toth wrote:
> 1. I have an EJB project and a plug-in project in the same workspace
> 2. I set the Java Build Path/project for the plug-in project.
> 3. In the plug-in project I instantiated an entity class (declared in
> the EJB project) - No error message
> 4. I built the plug-in project
> 5. I Run it
> Result: An error message appeared: java.lang.NoClassDefFoundError: ...
>
> How can I fix this problem?
>
Plugins depend on other plugins and don't use the Java Build Path for
classpath resolution. You need to make the EJB project a plugin project
and edit your other plugin project to depend on the EJB plugin.
Re: java.lang.NoClassDefFoundError [message #894536 is a reply to message #894391] Mon, 09 July 2012 14:26 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3248
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 7/8/2012 10:00 PM, David Wegener wrote:
> On 07/08/2012 10:47 AM, csaba toth wrote:
>> 1. I have an EJB project and a plug-in project in the same workspace
>> 2. I set the Java Build Path/project for the plug-in project.
>> 3. In the plug-in project I instantiated an entity class (declared in
>> the EJB project) - No error message
>> 4. I built the plug-in project
>> 5. I Run it
>> Result: An error message appeared: java.lang.NoClassDefFoundError: ...
>>
>> How can I fix this problem?
>>
> Plugins depend on other plugins and don't use the Java Build Path for
> classpath resolution. You need to make the EJB project a plugin project
> and edit your other plugin project to depend on the EJB plugin.
>
(Thanks, David.)
Previous Topic:JFace Setup Question
Next Topic:Need help with C++ for Eclipse
Goto Forum:
  


Current Time: Fri Nov 28 21:00:48 GMT 2014

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

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