Configuring Javac

To calculate Compiler Warnings for Java, TICS needs access to the Java compiler javac. There are multiple ways to specify the location of the Java compiler. The following — in order of precedence — locations are tried.

  1. The TICS configuration (SERVER.yaml/PROJECTS.yaml, see below).
  2. The JAVA_HOME environment variable (as used by popular Java build tools such as Ant, Maven and Gradle).
  3. The system PATH.

Basic configuration

Syntax

The following properties have to be declared either on SERVER or PROJECT level:

TOOLS:
  Javac:
    PATH: 'The path of the Javac compiler'

Example:

TOOLS:
  Javac:
    PATH: 'C:/Program Files/Java/jdk1.8.0_25/bin/javac.exe'