Reputation: 3814
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 be 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
Upvotes: 2
Views: 483
Reputation: 6251
This can be done with a loader class as described in this answer: Create cross platform Java SWT Application
Upvotes: 1
Reputation: 3814
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 ;)
Upvotes: 0
Reputation: 4260
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
Upvotes: 0