Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » MessageConsole NoClassDefFoundError
MessageConsole NoClassDefFoundError [message #460798] Fri, 29 December 2006 12:52 Go to next message
Eclipse UserFriend
Originally posted by: shreeflam.gmail.com

Hi,

In my application, I'm trying to instantiate MessageConsole class in
order to include a debug console. I have imported the required package
(org.eclipse.ui.console.MessageConsole). In spite of this, when I run
the RCP application, I get java.lang.NoClassDefFoundError:
org/eclipse/ui/console/MessageConsole error.

I have also done eclipse -clean, project clean and workspace refresh to
no avail. I checked for the presence of MessageConsole class in the
org.eclipse.ui.console_3.1.100.v20060605.jar and found it there. I'm not
sure as to why I am getting such an error. Is there anything that I'm
missing here?

I appreciate your help.

--
Thanks,
Shreekanth
Re: MessageConsole NoClassDefFoundError [message #460817 is a reply to message #460798] Fri, 29 December 2006 14:08 Go to previous messageGo to next message
Eclipse UserFriend
Hi Shri,

Have you added the required dependencies in MANIFEST.MF?

You can do this by adding it in the dependencies or directly addig them in
the MANIFEST.MF file.

The file that you have written might have compiled, because you have added
the required jars in the project build path, but they are not available
during run time. To make them available there add them in your
dependencies(MANIFEST.MF).

Hope this solves your problem :)

Regards,
Krishna
Re: MessageConsole NoClassDefFoundError [message #460821 is a reply to message #460798] Fri, 29 December 2006 14:29 Go to previous message
Eclipse UserFriend
Originally posted by: shreeflam.gmail.com

Shreekanth wrote:
> In my application, I'm trying to instantiate MessageConsole class in
> order to include a debug console. I have imported the required package
> (org.eclipse.ui.console.MessageConsole). In spite of this, when I run
> the RCP application, I get java.lang.NoClassDefFoundError:
> org/eclipse/ui/console/MessageConsole error.

I found the solution. For others having similar problems, I'm pasting my
IRC chat log here:

<rcjsuen> You added the relevant bundles as a dependency in your
manifest.mf file?
<rcjsuen> How did you include all the required JARs?
<rcjsuen> You modifed the project's build path?
<me> rcjsuen: yes
<rcjsuen> You don't do that for RCP applications/Eclipse plug-ins.
<rcjsuen> Does your project have a META-INF folder with a MANIFEST.MF file?
<me> rcjsuen: oh, I see... yes, it does have the MANIFEST.MF file
<rcjsuen> open your projct's buildpath
<rcjsuen> remove those JARs
<rcjsuen> and then in the Dependencies tab of your MANIFEST.MF
<rcjsuen> add them there instead
<rcjsuen> And if you're not doing so already, add -consoleLog as a
program argument when launching your RCP application.
<rcjsuen> no more "Unhandled event loop" messages
<rcjsuen> a proper stack trace will come up

--
Shreek
Previous Topic:Problem opening a file in the RCP application
Next Topic:NLS missing message
Goto Forum:
  


Current Time: Sun Mar 16 06:43:09 EDT 2025

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

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

Back to the top