0

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??

JDL Wahaha
  • 695
  • 1
  • 14
  • 22

2 Answers2

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 ...
Christo Smal
  • 615
  • 5
  • 16
0

1: Uninstall your Current Java

2: Download/Install the 64 Bit Version of Java

3: Start Your Eclipse Again :-)

iLearn
  • 991
  • 1
  • 13
  • 27