Select SWT Library depending on OS
How do I ensure when I distribute a JAR-file that the proper SWT-library (either the windows, the linux or mac version) is loaded an ready to use? It would b开发者_StackOverflow社区e very helpful because then you can do one export and your application can run on any platform like Swing apps usually do.
Thanks a lot
This can be done with a loader class as described in this answer: Create cross platform Java SWT Application
You looking for the delta-pack. The delta pack archive contains all the platform specific fragments from the Eclipse SDK.
See http://aniefer.blogspot.com/2009/06/using-deltapack-in-eclipse-35.html
Thanks a lot for the answer. Sounds like I have to distribute my app per platform. In comparison to Swing this is a disadvantage, but I love the native widgets ;)
精彩评论