当前位置: 首页 > 知识库问答 >
问题:

Eclipse for PHP错误Java wa已启动,但返回错误代码13

章安宜
2023-03-14

我是Eclipse、PHP或Java的绝对初学者。我正在努力学习PHP。所以我安装了ECLIPSE for PHP。但我得到一个错误(粘贴在下面)

我还发现这个错误从日志文件在我的eclipse配置文件夹eclipse-php-Luna-SR1-win32-x86_64\eclipse\配置

 !SESSION 2014-12-08 20:03:14.382 -----------------------------------------------
eclipse.buildId=4.4.1.M20140925-0400
java.version=1.8.0_25
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.php.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.php.product

!ENTRY org.eclipse.osgi 4 0 2014-12-08 20:03:15.416
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Cannot load 64-bit SWT libraries on 32-bit JVM
    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:256)
    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236)
    at org.eclipse.swt.internal.C.<clinit>(C.java:21)
    at org.eclipse.swt.widgets.Display.<clinit>(Display.java:138)
    at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:716)
    at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162)
    at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:165)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:107)
    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(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:648)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1438)

当我检查我的JAVA版本时,它显示

Java版本"1.8.0_25"Java(TM)SE运行时环境(构建1.8.0_25-b18)JavaHotSpot(TM)客户端VM(构建25.25-b02,混合模式,共享)

错误消息显示所需的Java版本为1.7。我搜索了Java版本1.7,但找不到。

请帮我解决这个错误。

共有1个答案

那正初
2023-03-14

错误消息java。lang.unsatifiedlinkerror:无法在32位JVM上加载64位SWT库很明显,您正在32位JVM(Java虚拟机)中运行64位SWT(Eclipse),必须下载32位版本的Eclipse。

或者

如果安装了64位JVM,请更改eclipse。ini文件指向正确的虚拟机。检查此链接以了解如何更改。

 类似资料: