ant 编译报 Cannot load 63-bit SWT libraries on 32-...

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

两种解决方案如下:

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

2.安装64位的JVM,Window -> Preferences -> Java -> Installed JRE's,指向Program Files (x86)下的32-bit VM即可

你可能感兴趣的:(java,ant)