L’articolo che segue è in lingua inglese, è disponibile anche la traduzione in italiano.
SWT and SwingWT-based programs, as well as all other Java programs with native libraries, are often tricky to deploy.
Because native libraries are needed an installer must be created, unless you tell users to manually copy files in a directory in the PATH (assuming that they know what it is).
Jar files would be preferrable, because a double-click would launch them on most platforms, but the Java Virtual Machine cannot use native libraries if you put them in Jars, instead the -Djava.library.path commandline switch must be used.
SWTLoader is an elegant hack to avoid all this, allowing you to deploy self-contained, self-extracting native libraries such as SWT in a single Jar file.
Read On…