I want to have the same distribution of SWT-based application for Windows 32 and 64bit environments. Is it at all possible?
UPD: I want to have a single jar dependency, that can be used both on Windows 32 and 64bit bit environments.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As far as I know you can not have two different target environments i.e. x32 and x64, with the plain vanilla version of SWT (i.e. the unmodified version).
If you are willing to change the SWT code itself then theoretically it is possible to load different versions of DLL as per the target environment. But you might introduce some bugs and have to keep your version updated with the new releases and bug fixes (that are released by eclipse).
Also there is another way of having two different set of jars (which you don’t want). And depending on the architecture ( x32 or x64) include the respective SWT jar in the class path.