|
Re: java.lang.NoClassDefFoundError [message #894359 is a reply to message #894353] |
Sun, 08 July 2012 16:26 |
|
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 #894536 is a reply to message #894391] |
Mon, 09 July 2012 14:26 |
|
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.)
|
|
|
Powered by
FUDForum. Page generated in 0.08595 seconds