MessageConsole NoClassDefFoundError [message #460798] |
Fri, 29 December 2006 12:52  |
Eclipse User |
|
|
|
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 #460821 is a reply to message #460798] |
Fri, 29 December 2006 14:29  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02775 seconds