您的位置:首页 > 其它

Cannot load 32-bit SWT libraries on 64-bit JVM

2015-07-20 18:19 393 查看
!SESSION 2015-07-20 18:16:26.597 -----------------------------------------------

eclipse.buildId=unknown

java.version=1.7.0_67

java.vendor=Oracle Corporation

BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN

Framework arguments: -product com.genuitec.myeclipse.product.ide

Command-line arguments: -product com.genuitec.myeclipse.product.ide -data package -dev file:D:/WorkSpace/.metadata/.plugins/org.eclipse.pde.core/New_configuration/dev.properties -os win32 -ws win32 -arch x86 -consoleLog

!ENTRY org.eclipse.osgi 2 0 2015-07-20 18:16:38.720

!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:

!SUBENTRY 1 org.eclipse.osgi 2 0 2015-07-20 18:16:38.720

!MESSAGE Bundle reference:file:/E:/Program Files/myeclipse/plugins/com.genuitec.eclipse.core_12.0.0.me201311281640.jar was not resolved.

!SUBENTRY 2 com.genuitec.eclipse.core 2 0 2015-07-20 18:16:38.720

!MESSAGE Missing native code match /lib/storage32.dll; processor=x86; osname=Win32.

!ENTRY org.eclipse.osgi 4 0 2015-07-20 18:16:38.834

!MESSAGE Application error

!STACK 1

java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:263)

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:240)

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:675)

at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162)

at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:154)

at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:96)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)

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:636)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)

at org.eclipse.equinox.launcher.Main.run(Main.java:1450)

at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

An error has occurred. See the log file

E:\Program Files\myeclipse\package\.metadata\.log.

win7 64-bit下,Eclipse运行SWT程序报错:Cannot load 32-bit SWT libraries on 64-bit JVM

两种解决方案如下:

1.下载64位的swt包(相对方案2,稍微繁琐些)

2.运行配置 run configurations -> Main 选项卡 Java Runtime Environment 一栏,execution environment 或者Runtime JRE选择装入的32位jre
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: