SWT在Windows 64位SWT、Windows

2023-09-09 21:14:05 作者:愛妳,只因爲是妳

我的应用程序抛出下面的异常。

My application throws the exception below.

在线程异常主要   java.lang.UnsatisfiedLinkError中:不能   在64位加载32位SW牛逼库   JVM。

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

如何解决此问题?什么是jar文件所需要的名字?

How to solve this? What is the name of jar file needed?

推荐答案

在64位JVM的你所需要的64位SWT。目前的版本可以在这里下载:

On 64-bit JVM's you need the 64-bit SWT. Current versions can be downloaded here:

http://archive.eclipse.org/eclipse/downloads/drops/R-3.6.1-201009090800/index.php#SWT

请注意前两个下载,第一个是32倍,其他为64。

Note the first two downloads, the first is for x32, the other for x64.

注意:即使是在64位的Windows,如果使用32位JVM,则还需要32位SWT版本

Note: Even on 64bit Windows, if you use the 32bit JVM, you still need the 32bit SWT version!