Java Desktop application: SWT vs. Swing
"requires native libraries for each supported system"
Does it mean that i have to rebuild my project for each OS, switching each time the libraries to the corresponding target's native library? Or is there a way to actually put every libraries required by different OS in the same project?
I just started Java, as my second language, sorry if this question look stupid.
No, you don't need to rebuild your project. You just need to make sure you bundle the correct SWT native library for each platform (.dll, .so etc.) with your program -- SWT has built-in logic to determine the platform and load the correct library.
ReplyDelete