[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Getting Runtime error in running javaeditor example

Hi all,
I am trying to run the javaeditor example but I get a runitme exception
while I open up a file with .java extension,I get this error; Unhandled
exception caught in event loop Reason:java.lang.ExceptionInitializerError.
But when I open up a file with a.jav extension I get a error dialog
stating this: "Unable to create part:hello.jav" and in the editor area I
get a message in red that"An error has occured when creating this editor.
any idea how to fix this problem. 

I will apprecaite your help

Syed

Following is the stack trace

!ENTRY org.eclipse.ui 4 2 Feb 13, 2003 01:52:56.920
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.ui".
!STACK 0
java.lang.NoClassDefFoundError
	at
com.example.NewEditor.editors.JavaEditor.createActions(JavaEditor.java:36)
	at
org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:1546)
	at
org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:65)
	at org.eclipse.ui.internal.PartPane$4.run(PartPane.java:136)
	at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:839)
	at org.eclipse.core.runtime.Platform.run(Platform.java:416)
	at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:134)
	at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:178)
	at
org.eclipse.ui.internal.EditorWorkbook.createPage(EditorWorkbook.java:230)
	at org.eclipse.ui.internal.EditorWorkbook.add(EditorWorkbook.java:85)
	at org.eclipse.ui.internal.EditorArea.addEditor(EditorArea.java:46)
	at
org.eclipse.ui.internal.EditorPresentation.openEditor(EditorPresentation.java:352)
	at org.eclipse.ui.internal.EditorManager$2.run(EditorManager.java:540)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:66)
	at
org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:529)
	at
org.eclipse.ui.internal.EditorManager.openInternalEditor(EditorManager.java:609)
	at
org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:421)
	at
org.eclipse.ui.internal.EditorManager.openEditorFromInput(EditorManager.java:304)
	at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:386)
	at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1708)
	at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1578)
	at
org.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard.performFinish(BasicNewFileResourceWizard.java:95)
	at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:577)
	at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:312)
	at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:398)
	at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:87)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1529)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1291)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:562)
	at org.eclipse.jface.window.Window.open(Window.java:542)
	at
org.eclipse.ui.internal.NewWizardShortcutAction.run(NewWizardShortcutAction.java:88)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:749)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:407)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:361)
	at
org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:352)
	at
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1529)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1291)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1256)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1239)
	at
org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:775)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432)
	at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24)