我是靠谱客的博主 凶狠饼干,最近开发中收集的这篇文章主要介绍eclipse 右键 open with ,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

eclipse3.1晕了,默认打开。jsp文件出现如下错误:

!SESSION 2008-09-20 13:08:12.625 -----------------------------------------------
eclipse.buildId=I20050627-1435
java.version=1.5.0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ui 4 4 2008-09-20 13:09:53.656
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2008-09-20 13:09:53.656
!MESSAGE Not implemented (java.lang.reflect.InvocationTargetException)
!STACK 0
org.eclipse.swt.SWTError: Not implemented (java.lang.reflect.InvocationTargetException)
at org.eclipse.swt.SWT.error(SWT.java:2968)
at org.eclipse.swt.SWT.error(SWT.java:2865)
at org.eclipse.swt.awt.SWT_AWT.new_Frame(SWT_AWT.java:141)
at com.genuitec.eclipse.webdesigner2.designeditor.MSHTMLViewer.createControl(MSHTMLViewer.java:300)
at com.genuitec.eclipse.webdesigner2.designeditor.MSHTMLViewer.<init>(MSHTMLViewer.java:257)
at com.genuitec.eclipse.webdesigner2.designeditor.MSHTMLViewer.<init>(MSHTMLViewer.java:229)
at com.genuitec.eclipse.webdesigner2.designeditor.DesignEditSubsystem.createDesignViewer(DesignEditSubsystem.java:183)
at com.genuitec.eclipse.webdesigner2.WebDesigner2.createDesignViewer(WebDesigner2.java:135)
at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.createDesignerControls(HTMLMultiPageEditorPart.java:504)
at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.createDesignPage(HTMLMultiPageEditorPart.java:480)
at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.createPages(HTMLMultiPageEditorPart.java:260)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:241)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:585)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:365)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2325)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2258)
at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:2250)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2236)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2231)
at org.eclipse.ui.actions.OpenWithMenu$3.handleEvent(OpenWithMenu.java:308)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.eclipse.swt.awt.SWT_AWT.new_Frame(SWT_AWT.java:139)
... 40 more
Caused by: java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
at java.awt.Window.<init>(Window.java:310)
at java.awt.Frame.<init>(Frame.java:419)
at java.awt.Frame.<init>(Frame.java:384)
at sun.awt.EmbeddedFrame.<init>(EmbeddedFrame.java:82)
at sun.awt.EmbeddedFrame.<init>(EmbeddedFrame.java:79)
at sun.awt.EmbeddedFrame.<init>(EmbeddedFrame.java:67)
at sun.awt.windows.WEmbeddedFrame.<init>(WEmbeddedFrame.java:47)
at sun.awt.windows.WEmbeddedFrame.<init>(WEmbeddedFrame.java:44)
... 45 more

莫名其妙的,不管他了,直接把默认类型改了,改的位置 window-preferences-general--editors--File Associations--右边的可以改默认打开方式。一切ok了

顺便截图一张看看具体位置

最后

以上就是凶狠饼干为你收集整理的eclipse 右键 open with 的全部内容,希望文章能够帮你解决eclipse 右键 open with 所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(54)

评论列表共有 0 条评论

立即
投稿
返回
顶部