Built SWTImageJ - eclipse-swtimagej/SWTImageJ GitHub Wiki
Built SWTImageJ as an Eclipse *.jar (not runnable)
Requirements: Java JDK and Maven already installed.
To built SWTImageJ as a *.jar library use Maven in the SWTImageJ directory with:
mvn clean install
If you build on Windows a path in the main *.pom has to be changed (just use the pom_win.xml where the path is already corrected - rename it to pom.xml).
To integrate more libraries with Maven and the target platform , see:
https://www.vogella.com/tutorials/EclipseJarToPlugin/article.html
Built SWTImageJ as a Desktop application
Requirements: Java JDK, Maven already installed. Built of Eclipse *.jar - see above.
SWTImagej can be built as an Eclipse plugin and also as a Desktop application.
After a new commit in the Github repository an Eclipse plugin built will be created automatically using a Jenkins built server.
However, to built SWTImageJ as a Desktop application (like the ImageJ application) a *.pom is available in the /app folder of the repository:
https://github.com/eclipse-swtimagej/SWTImageJ/blob/develop/org.eclipse.swt.imagej/app/pom.xml
Change your current directory to this folder.
To built SWTImageJ on the command line execute the following commands (for all OS environments):
mvn clean package
The built will package all binaries, folders, files and SWT/Eclipse dependencies in one executable *.jar.
The built is located by default in the directory: /app/target
Please also copy the following folders and files to the export folder of the created *.jar: plugins, macros, luts, images, about.jpg, functions.html.
Start SWTImageJ
Change the directory to the directory of the export and then execute the *.jar with:
Windows and Linux:
java -jar SWTImageJ-x.x.x-SNAPSHOT-jar-with-dependencies.jar
MacOSX:
java -jar -XstartOnFirstThread SWTImageJ-x.x.x-SNAPSHOT-jar-with-dependencies.jar
Windows Extra: (given path to the *.jar with whitespaces has to be quoted):
java -jar "C:\my export\SWTImageJ-1.5.0-SNAPSHOT-jar-with-dependencies.jar"