|
Jalview 2.11.4.1 Source archive (.tar.gz) (546.0MB)
SHA256: 5361bb63ac83cc1f7e56204ed08c413ef6f942d1e64f67325b8ab463a3a943fb
|
Building Jalview from the Source Code
Jalview and the Jalview installers are built using Gradle and install4j.
Whilst Gradle is free to use, install4j requires a license. However you can still build Jalview as a working application without install4j.
Build requirements
Full details can be found in our doc/building.md
document in the tar archive, but in brief you will need:
- a Java 11 JDK and
- a recent (6.2 or later) version of Gradle.
Build procedure
There are several stages to which you can build the Jalview application, including its automatic updating launcher (Getdown), but the easiest to build and use is the Executable JAR.
Assuming a Java 11 javac
and recent gradle
are in your PATH environment:
-
First download and unpack the tar archive (it unpacks into a
jalview
folder):curl -O https://www.jalview.org/source/jalview_2_11_4_1.tar.gz tar -zxvf ./jalview_2_11_4_1.tar.gz
-
Change directory into the
jalview
folder:cd jalview
-
Build the Jalview Executable JAR (shadowJar) using gradle:
gradle shadowJar
./build/libs/jalview-all-TEST-j11.jar
.
If you want to build a Java 8 compatible JAR then run:gradle shadowJar -PJAVA_VERSION=1.8
-
You should now be able to run Jalview using the Executable JAR file:
java -jar ./build/libs/jalview-all-TEST-j11.jar