Compiling JSystem from Sources

Compiling JSystem from Sources

Install Java JDK

Windows

JSystem is a pure Java framework and it needs Oracle JVM for running. Download Java from Oracle site . Since you are compiling from sources you can select any JDK flavor. 

After installing the JDK, add JAVA_HOME environment variable to your operating system and add %JAVA_HOME%\bin to your path environment variable. For example

JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_32

PATH=%PATH%;%JAVA_HOME%\bin

Open your operating system console, type

> java -version 

Make sure that the version is compatible with the one you have just installed. 

Install Maven

Windows

JSystem sources are compatible with the Maven framework project structure. Download Maven 3 binaries, extract it to your program files folder and add environment variable MAVEN_HOME with the location of Maven. For example:

MAVEN_HOME=C:\Program Files (x86)\apache-maven-3.0.4

To your path environment variable add the Maven bin folder:

PATH=%PATH%;%MAVEN_HOME%/bin

 

Install Git

Windows

Download and install Git. If the installer did not add the environment variables to your system, add a new environment variable with the location of the Git installation. For example

HOME=C:\Program Files (x86)\Git

To your path environment variable add 

PATH=%PATH%;%HOME%\bin

To see if all settings are correct open a new console window and type git. You should see the Git usage screen.

 

 

 Check out JSystem Sources

JSystem is hosted on GitHub. To checkout out the latest sources open a console window and create a new folder with name git under your user folder and change folder to the new directory:

> mkdir git

> cd git

To check out the sources of JSystem we will use the Git clone command. 

> git clone https://github.com/Top-Q/jsystem.git

 

Compile JSystem

After the successful cloning of the project, a folder with name jsystem will be added under the git directory. First we will need to compile all various JSystem projects. Open your operating system console and execute the following commands:

> cd git\jsystem\jsystem-parent

> mvn clean install -DskipTests=true

All JSystem projects are now compiled and the artifacts were added to your local Maven repository. 

 

Assemble JSystem

You may wish to have your own executable version of JSystem. To assemble your own version, open console and change directory to:

jsystem/jsystem-assembly/jsystem-runner

Execute the following command:

> mvn clean install 

After successful build a new folder will be created in target/runner/runner. Change directory to this folder and you could find an assembled JSystem version 

 

Fork me on GitHub