tags:

views:

45

answers:

2

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

A: 

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

arcticpenguin
This looks like it assumes that the application is Eclipse RCP-based rather than just an app that uses the SWT library.
McDowell
Correct. If you want your own bootstrapper, you have roll it yourself.
arcticpenguin
A: 

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 ;)

phineas