【问题标题】:Eclipse not working in windows 8Eclipse 无法在 Windows 8 中运行
【发布时间】:2012-11-09 07:20:34
【问题描述】:

我最近升级到 Windows 8(这显然是一个非常糟糕的决定并且浪费了 40 美元)并且 eclipse 没有启动。我下载了朱诺,但结果还是一样。感谢是否有人可以帮助我。

eclipse.buildId=M20120914-1800 java.version=1.6.0_23 java.vendor=Sun Microsystems Inc. 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 2012-11-20 20:42:45.300 !MESSAGE 应用程序错误 !堆栈 1 java.lang.UnsatisfiedLinkError:无法加载 SWT 库。原因: C:\Users\Lahiru\Desktop\eclipse\configuration\org.eclipse.osgi\bundles\628\1\.cp\swt-win32-4234.dll:动态链接库 (DLL) 初始化例程失败 java.library.path 中没有 swt-win32 无法加载库:C:\Users\Lahiru\.swt\lib\win32\x86_64\swt-win32-4234.dll 无法加载库:C:\Users\Lahiru\.swt\lib\win32\x86_64\swt-win32.dll C:\Users\Lahiru\.swt\lib\win32\x86_64\swt-win32-4234.dll:动态链接库 (DLL) 初始化例程失败 在 org.eclipse.swt.internal.Library.loadLibrary(Library.java:331) 在 org.eclipse.swt.internal.Library.loadLibrary(Library.java:240) 在 org.eclipse.swt.internal.C.(C.java:21) 在 org.eclipse.swt.widgets.Display.(Display.java:138) 在 org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:653) 在 org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161) 在 org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:154) 在 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:96) 在 org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 在 sun.reflect.NativeMethodAccessorImpl.invoke(未知来源) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源) 在 java.lang.reflect.Method.invoke(未知来源) 在 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) 在 org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) 在 org.eclipse.equinox.launcher.Main.run(Main.java:1438) 在 org.eclipse.equinox.launcher.Main.main(Main.java:1414)

【问题讨论】:

  • 您的系统上是否确实存在那些(据说)丢失的 DLL?路径名是否正确?
  • 这是个好问题。实际上 C:\Users\Lahiru\.swt\lib\win32\x86_64\swt-win32.dll 丢失了。

标签: java eclipse windows-8


【解决方案1】:

确保您已设置 JAVA_HOME 和 JRE 环境。如果您使用的是 64 位操作系统并安装了 64 位 Eclipse,那么安装 x64 位 JRE 也会有所帮助。 http://www.java.com/en/download/faq/java_win64bit.xml

我在我的两个 Windows 8 版本上遇到了一些类似的问题,并且能够解决这些问题。祝你好运。

【讨论】:

  • 谢谢.. 但没用。它实际上缺少文件 C:\Users\Lahiru\.swt\lib\win32\x86_64\swt-win32.dll 不确定它是如何丢失的
  • 还没有解决。不知道这些文件是如何丢失的以及从哪里获取它们。
  • 这可能是因为 Java 或 Equinox 在查找本机库时可能还不能处理 Windows 8。我在 Equinox 上遇到了与 Karaf 类似的问题。
【解决方案2】:

尝试将 Windows 更新到 8.1。

我是 Windows 8.1 64 位用户。我的 JDK 也是 64 位的。起初我在我的 8.1 上使用了 eclipse Kepler。但是当我工作时,日食经常变得没有响应。在那之后,我决定回到 eclipse Juno,它现在工作正常。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-24
    • 1970-01-01
    • 2014-07-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多