Cannot load 64-bit SWT libraries on 32-bit JVM 解决方法
2012-12-22 14:26
1056 查看
问题描述:
I'm trying to debug this problem but not sure where exactly i need to replace SWT jar file for Eclipse.
Current System Config:
Error Message:
解决方法:[/code]
Eclipse is launching your application with whatever JRE you defined in your launch configuration. Since you're running the 32-bit Eclipse, you're running/debugging against its 32-bit SWT libraries, and you'll need to run a 32-bit JRE.
Your 64-bit JRE is, for whatever reason, your default Installed JRE.
To change this, first make sure you have a 32-bit JRE configured in the Installed JREs preference. Go to Window -> Preferences and navigate to Java -> Installed JREs:
You can click Add and navigate to your 32-bit JVM's
Then in your Run Configuration, find your Eclipse Application and make sure the Runtime JRE is set to the 32-bit JRE you just configured:
(Note the combobox that is poorly highlighted.)
Don't try replacing SWT jars, that will likely end poorly.
I'm trying to debug this problem but not sure where exactly i need to replace SWT jar file for Eclipse.
Current System Config:
EclipseHelios3.6-32Bit JDK 1.6 JVM -32BitWindows7-64Bit
Error Message:
java.lang.UnsatisfiedLinkError:Cannot load 64-bit SWT libraries on 32-bit JVM at org.eclipse.swt.internal.Library.loadLibrary(Library.java:194) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:174) 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:687) at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161) at de.vogella.rcp.intro.first.Application.start(Application.java:18) 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:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384)An error has occurred.See the log file
解决方法:[/code]
Eclipse is launching your application with whatever JRE you defined in your launch configuration. Since you're running the 32-bit Eclipse, you're running/debugging against its 32-bit SWT libraries, and you'll need to run a 32-bit JRE.
Your 64-bit JRE is, for whatever reason, your default Installed JRE.
To change this, first make sure you have a 32-bit JRE configured in the Installed JREs preference. Go to Window -> Preferences and navigate to Java -> Installed JREs:
You can click Add and navigate to your 32-bit JVM's
JAVA_HOMEto add it.
Then in your Run Configuration, find your Eclipse Application and make sure the Runtime JRE is set to the 32-bit JRE you just configured:
(Note the combobox that is poorly highlighted.)
Don't try replacing SWT jars, that will likely end poorly.
相关文章推荐
- jeb打开出现Cannot load 32-bit SWT libraries on 64-bit JVM异常解决方法
- Cannot load 32-bit SWT libraries on 64-bit JVM 怎么修改解决?
- Eclipse运行SWT出错(Cannot load 32-bit SWT libraries on 64-bit JVM)
- Cannot load 32-bit SWT libraries on 64-bit JVM
- Cannot load 64-bit SWT libraries on 32-bit JVM解决方案
- Cannot load 32-bit SWT libraries on 64-bit JVM
- Cannot load 64-bit SWT libraries on 32-bit JVM
- Cannot load 32-bit SWT libraries on 64-bit JVM
- Cannot load 32-bit SWT libraries on 64-bit JVM
- Cannot load 32-bit SWT libraries on 64-bit JVM
- Cannot load 64-bit SWT libraries on 32-bit JVM
- Eclipse错误:Cannot load 32-bit SWT libraries on 64-bit JVM
- Cannot load 32-bit SWT libraries on 64-bit JVM
- Cannot load 32-bit SWT libraries on 64-bit JVM,SDK Manager不能启动。
- Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bi
- Can't load IA 32-bit .dll on a AMD 64-bit platform 解决方法
- ant 编译报 Cannot load 63-bit SWT libraries on 32-...
- sts(也是eclipse) 启动 tomcat ,Can't load AMD 64-bit .dll on a IA 32-bit platform 问题解决方法
- 解决Tomcat: Can't load IA 32-bit .dll on a AMD 64-bit platform问题
- 关于tomcat启动时java.lang.UnsatisfiedLinkError Can't load AMD 64-bit .dll on a IA 32-bit platform问题解决办法