f4lco
f4lco

Reputation: 3814

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

Answers (3)

mchr
mchr

Reputation: 6251

This can be done with a loader class as described in this answer: Create cross platform Java SWT Application

Upvotes: 1

f4lco
f4lco

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

andyczerwonka
andyczerwonka

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

Related Questions