At first when developing my program I got this error the other way around; it told me I couldn’t use a 32-bit SWT library on a 64-bit JVM. So I went and got the 64-bit library and used that. Now when I run my program on a different computer, which has a 32-bit OS, it gives the error. Is there no way to make SWT run regardless of if you have 32 or 64 bit OS?
Share
The build paths are different for each set of SWT libraries so you have to make separate versions for each operating system that you want your application to run on. To do this, configure the build path so that only the JRE and platform-specific libraries are included, then make a runnable jar (Eclipse is excellent for this). It’s tedious and goes against the Java paradigm, but its the only way (that I know of).