gpt4 book ai didi

java - Eclipse 无法打开并显示 "an error has occurred"?

转载 作者:行者123 更新时间:2023-12-01 11:24:48 28 4
gpt4 key购买 nike

我正在 Mac (Yosemite) 上运行 Eclipse Luna。

我已经使用 Eclipse 几个月了,今天早上当我打开 Eclipse 时,我在启动屏幕后收到一个弹出窗口,其中显示“发生错误,请参阅日志文件。”

我尝试过的:

  • 使用 -clean 参数运行 Eclipse

  • 我的资源元数据文件夹中没有要删除的 .snap 文件

  • 完全删除我的工作区(好吧,重命名它)

不过它并没有超越启动屏幕。

这是日志文件,以防有帮助:

!SESSION 2015-06-18 07:55:02.645
----------------------------------------------- eclipse.buildId=4.4.2.M20150204-1700 java.version=1.7.0_67
java.vendor=Oracle Corporation BootLoader constants: OS=macosx,
ARCH=x86_64, WS=cocoa, NL=en_US Framework arguments: -product
org.eclipse.epp.package.java.product -keyring
/Users/ralph/.eclipse_keyring -showlocation Command-line arguments:
-os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring
/Users/ralph/.eclipse_keyring -showlocation

!ENTRY org.eclipse.osgi 4 0 2015-06-18 07:55:06.268 !MESSAGE
Application error !STACK 1 java.lang.ClassFormatError: Invalid pc in LineNumberTable in class file org/eclipse/swt/widgets/Button
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:272)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineClass(ClasspathManager.java:632)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findClassImpl(ClasspathManager.java:588)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:550)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:527)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:324)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:320)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
at java.lang.Class.getMethod0(Class.java:2813)
at java.lang.Class.getMethod0(Class.java:2822)
at java.lang.Class.getMethod(Class.java:1663)
at org.eclipse.ui.internal.WorkbenchPlugin.getSplashShell(WorkbenchPlugin.java:1346)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:114)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

最佳答案

你用任务管理器杀死了jvm进程吗?如果这样做,您的工作区可能已损坏。您必须创建一个新的工作区。这种事在我身上发生过好几次。

关于java - Eclipse 无法打开并显示 "an error has occurred"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30914948/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com