Skip to content
Kiran V Garimella edited this page Jul 18, 2019 · 3 revisions

How to install CortexJDK

Compiling everything into a single package (slow)

CortexJDK uses Ant to manage the build process. The default build target is 'dist' in which we compile all of our code and dependencies into a single .jar file that can then be deployed anywhere. Compilation into a package is straightforward:

$ git clone https://github.com/mcveanlab/CortexJDK
$ cd CortexJDK
$ ant
$ java -jar dist/cortexjdk.jar

Running ant with no options is equivalent to running ant dist. This compilation usually takes a few minutes.

Compiling everything into separate packages (fast)

For testing and debugging, it is usually not convenient to compile everything into a single redistributable package. For quick builds, we can use the 'compile' target:

$ git clone https://github.com/mcveanlab/CortexJDK
$ cd CortexJDK
$ ant compile
$ java -jar build/jars/cortexjdk.jar

The compile target places all of the individual jar files in build/jars. As long as all of the jar files stay together, CortexJDK will function precisely the same way as it does when packaged into a single distribution. This compilation usually takes a few seconds.