简体   繁体   English

Eclipse 发生错误。请参阅日志文件 (Windows x64)

[英]Eclipse An Error has occurred.See the log File (Windows x64)

I am getting An Error has occurred.See the log File.我收到一个错误已发生。请参阅日志文件。 I tried Installing Eclipse again but same problem every time.我再次尝试安装 Eclipse,但每次都出现同样的问题。 Even after installing JDK again it shows same Error.即使在再次安装 JDK 后,它也会显示相同的错误。

Heading ##> !SESSION 2018-11-01 19:21:55.728标题##> !SESSION 2018-11-01 19:21:55.728

----------------------------------------------- eclipse.buildId=4.9.0.I20180906-0745 java.version=1.8.0_191 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product ----------------------------------------------- eclipse.buildId =4.9.0.I20180906-0745 java.version=1.8.0_191 java.vendor=Oracle Corporation BootLoader 常量:OS=win32、ARCH=x86_64、WS=win32、NL=en_US 框架参数:-product org.eclipse.epp。 package.jee.product 命令行参数:-os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

!ENTRY org.eclipse.osgi 4 0 2018-11-01 19:22:23.425 !MESSAGE Application error !STACK 1 java.lang.NullPointerException at org.eclipse.swt.widgets.Display.getMessageCount(Display.java:2029) at org.eclipse.swt.widgets.Display.foregroundIdleProc(Display.java:1317) at org.eclipse.swt.internal.win32.OS.VtblCall(Native Method) at org.eclipse.swt.widgets.Display.init(Display.java:2711) at org.eclipse.swt.graphics.Device.(Device.java:144) at org.eclipse.swt.widgets.Display.(Display.java:472) at org.eclipse.swt.widgets.Display.(Display.java:463) at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:749) at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:163) at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:185) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:128) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:199) at org.eclipse.core.runtime.internal.adaptor.Eclipse !ENTRY org.eclipse.osgi 4 0 2018-11-01 19:22:23.425 !MESSAGE Application error !STACK 1 java.lang.NullPointerException at org.eclipse.swt.widgets.Display.getMessageCount(Display.java:2029)在 org.eclipse.swt.widgets.Display.foregroundIdleProc(Display.java:1317) 在 org.eclipse.swt.internal.win32.OS.VtblCall(Native Method) 在 org.eclipse.swt.widgets.Display.init( Display.java:2711) at org.eclipse.swt.graphics.Device.(Device.java:144) at org.eclipse.swt.widgets.Display.(Display.java:472) at org.eclipse.swt.widgets .Display.(Display.java:463) at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:749) at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:163) at org.eclipse .ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:185) 在 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:128) 在 org.eclipse.equinox.internal .app.EclipseAppHandle.run(EclipseAppHandle.java:199) 在 org.eclipse.core.runtime.internal.adaptor.Eclipse AppLauncher.runApplication(EclipseAppLauncher.java:137) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:391) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:246) 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:659) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595) at org.eclipse.equinox.launcher.Main.run(Main.java:1501) at org.eclipse.equinox.launcher.Main.main(Main.java:1474) AppLauncher.runApplication(EclipseAppLauncher.java:137) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter. java:391) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:246) 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:659) at org.eclipse.equinox .launcher.Main.basicRun(Main.java:595) at org.eclipse.equinox.launcher.Main.run(Main.java:1501) at org.eclipse.equinox.launcher.Main.main(Main.java:1474) )

I managed to get eclipse to start out of pure dumb luck.我设法让日食从纯粹的愚蠢运气开始。 I held down the ctrl key while I clicked the eclipse icon in my taskbar.我在单击任务栏中的 eclipse 图标时按住了 ctrl 键。 I took the gamble of shutting down eclipse to see if I could repeat the fix.我赌了一把关闭 eclipse 的机会,看看是否可以重复修复。 Without holding down the ctrl key, no good.不按住 ctrl 键,不行。 But holding it down again got it to start.但是再次按住它让它开始。 I have no explanation.我没有解释。

I am running the latest Win10 build from the fast ring, build 18272. So my issue and fix may or may not work for you.我正在从 fast ring 运行最新的 Win10 版本,版本 18272。所以我的问题和修复可能对你有用,也可能不适合。

Looks like the bug already fixed in the development branch: Eclipse IBuilds(I20181114-1345 and onward - http://download.eclipse.org/eclipse/downloads看起来开发分支中已经修复了错误:Eclipse IBuilds(I20181114-1345 及以后 - http://download.eclipse.org/eclipse/downloads

Anyway if you don't like to update to an unstable version you can use "Compatible wizard".无论如何,如果您不想更新到不稳定的版本,您可以使用“兼容向导”。 I managed it by running the wizard (from context menu by right click) and select the following options: "Troubleshoot program" -> "The program worked in early version..." -> "I don't know".我通过运行向导(通过右键单击从上下文菜单中)并选择以下选项来管理它:“疑难解答程序”->“该程序在早期版本中运行...”->“我不知道”。

Not able to comment on the post above due to not having accrued enough Stack Overflow rep, however, I can attest that the above fix of holding CTRL key when launching Eclipse did work for me on Windows 18277.1000 (version 1809), Insiders Fast.由于没有累积足够的 Stack Overflow 代表,无法对上面的帖子发表评论,但是,我可以证明在启动 Eclipse 时按住 CTRL 键的上述修复对我在 Windows 18277.1000(版本 1809),Insiders Fast 上确实有效。 Previously, using the command eclipse.exe -clean -clearPersistedState had worked as well, but stopped working as of about 11/10/2018.以前,使用命令 eclipse.exe -clean -clearPersistedState 也能正常工作,但在 2018 年 10 月 11 日左右停止工作。 Might or might not be related to the latest Insiders preview update but is coincident with its installation.可能与最新的 Insiders 预览版更新有关,也可能无关,但与其安装一致。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 发生错误。请参阅日志文件。 工作区.metadata .log eclipse - an error has occurred.see log file. workspace .metadata .log eclipse Eclipse 安装错误:发生错误。 看看日志文件 - Eclipse installation error : an error has occurred. See the log file Eclipse - 启动时发生错误/请参阅日志文件 - Eclipse - Error occurred at launch / see log file Eclipse Juno 未启动 - 发生错误。 查看日志文件 [\\.metadata\\.log.] - Eclipse Juno doesn't start - An error has occurred. See the log file [\.metadata\.log.] 打开 Eclipse 时显示错误消息:“发生错误。查看日志文件为空” - Error message displayed when opening Eclipse: "An error has occurred. See the log file null" Eclipse 4.9上的Java 11和E(fx)剪辑JavaFX插件:发生错误-请参阅日志文件 - Java 11 and E(fx)clipse JavaFX plugin on Eclipse 4.9: An error has occurred - see the log file libsodium + windows 10 x64 + Eclipse - libsodium + windows 10 x64 + Eclipse 使用x32 JDK在x64 Windows上为x32 Server编译x64 Eclipse - Compiling on x64 Eclipse with x32 JDK on x64 Windows for x32 Server [Eclipse 未启动]:发生错误。 查看日志文件 null - [Eclipse not starting]:An error has occured. See the log file null 发生错误。 请查看日志文件 - eclipse juno - An error has occured. Please see log file - eclipse juno
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM