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

眉间皱痕 提交于 2019-12-11 18:13:17

问题


I'm trying to run a java project called To-Do-O (source - http://www.ohloh.net/p/to-do-o/enlistments) After I loaded the projects into Eclipse and run the main.java, it returns the following error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM

I tried adding -d32 as many of the solution suggests [see iamge], but it returns another message

Error: This java instance does not support a 32-bti JVM. Please install the desired version.

Does anyone have the fix??


回答1:


Referring to http://eclipse.1072660.n5.nabble.com/SWT-libraries-on-64-bit-JVM-td91066.html You should either download SWT 64 bit, or run JVM with -d32 option. If you are on a mac, with java 7 or 8, you might get an error message: "This Java instance does not support a 32-bit JVM". Of course nothing restricts you from using an old java version:

/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -d32 ...



回答2:


1: Uninstall your Current Java

2: Download/Install the 64 Bit Version of Java

3: Start Your Eclipse Again :-)



来源:https://stackoverflow.com/questions/22291815/eclipse-cannot-load-32-bit-swt-libraries-on-64-bit-jvm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!