Building the SWT JNI libraries from the eclipse SDK download:
1. Download an Eclipse distribution from
http://www.eclipse.org/downloads/index.php.
2. Unzip the distribution. This will create a directory called eclipse. This directory is subsequently referred to as <eclipseRoot>.
3. In the directory <eclipseRoot>/plugins/org.eclipse.rcp.source.platform_X.X.X, find the source zip in the SWT subdirectory.
4. Unzip contained file src.zip.
5. Edit the file build.sh (or build.bat on Windows) in the current directory. Set the environment variables defined in that file to match the location of your JRE, etc. Save the file and close it.
6. Run the build command (sh build.sh for UNIX and Linux platforms, build.bat for Windows). This will create the appropriate library file(s) in the current directory. For example, this will create swt-XXXX.dll files on windows, or libswt-XXXX.so files on Linux and Solaris.
Partager