I am writing a SWT application that can be used on Windows (32/64 bit) and Mac OSX (32/64 bit).
Besides the JRE, I rely on the SWT library found here . I can find four versions of the SWT library depending on my target platforms (as mentioned above).
When creating my application, how can I compile using the correct SWT Jar? If possible, I would like to try to avoid hard coding the Jar version, platform and architecture. SWT Jars are named like this:
- svt-win32-x86_64.jar
- svt-win32-x86_32.jar
- SWT-MacOSX-x86_32.jar
- SWT-MacOSX-x86_64.jar
(My project will be an open source project. I would like people to be able to download the source code and build it, and so I thought about incorporating all four versions of SWT Jars into the source distribution. I hope this is the right approach to publish code based on libraries of the third part.)
Thanks to everyone.
source
share