[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] console trouble, was Re: this is for Steve Blass

Piyush,

The EMF wizard I referred to is simply a new file wizard that I had available to experiment with. The fact that it is in an EMF editor shouldn't make a difference to our conversation. When I look at the stack trace I see

> Caused by: java.lang.NoClassDefFoundError:
> exampleconsole/handlers/SampleConsoleHandler

This means that the class is somehow not available at run time. I've had that happen to me when I have used the Project Properties dialog to add a reference to the project rather than adding a dependency in the plugin manifest editor or by leaving something out of the run configuration. If the sample console is in the same plug-in as the wizard then I'm not sure why it can not be found. If the sample console is in another plug-in then you should check the Dependencies tab in the plug-in manifest of the plug-in containing the wizard to make sure it has the exampleConsole included in the Required Plug-ins list. If that is in place then make sure the exampleConsole plugin is included in the runtime configuration you are using for Run or Debug. If that's there, I'm running out of ideas.

Now, it seems the point of all this is to prompt the user to install a required piece of software if that is not found, right? Perhaps a simple MessageDialog prompting the user when the software is not found is an easier way to achieve the goal?

-
Steve


Piyush Agarwal wrote:
hi steve,

Nice to hear from you. I am also using Eclipse Ganymede but the plug-ins that I am using are from the previous versions. I learnt about breakpoints and debug and I did that but it shows me the exception of NoClassDefFound. I had also pasted the stack trance in my previous post. I also tried to call the function after finally loop but I noticed that my GUI stops working and nothing turns up. Infact I get another stack trace.
java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:403)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
at inoTek.InoFlex.InoFace.wizards.NewHDLProject.performFinish(NewHDLProject.java:94)


at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:253)


at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:273)

at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:281)

at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)


at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)

at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247)

at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)

at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)

at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)

at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)


at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)


at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: java.lang.NoClassDefFoundError: exampleconsole/handlers/SampleConsoleHandler
at inoTek.InoFlex.InoFace.wizards.NewHDLProject$CreateProject.execute(NewHDLProject.java:218)


at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:104)

at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:116)


at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

Caused by: java.lang.ClassNotFoundException: exampleconsole.handlers.SampleConsoleHandler
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481)


at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)

at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)

at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)

    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    ... 5 more

I think there is trouble in invoking the function writetomyconsole. the execute function works fine as an icon is created when a new eclipse opens and when I click on it, it does write into console of new workbench. But when i call it through diff functions I do not get any answers. Please elaborate more about EMF wizard? I looked for it but could not understand it.

Hope to hear soon from you.

Regards
Piyush