- Qbs Manual
- Module java
- Qt Build Suite 1.4.1

# Module java

The `java` module contains the properties and rules for building Java projects.

## Java Properties

Property | Type | Default | Description
--- | --- | --- | ---
additionalClassPaths | stringList | undefined | Locations beside this product's class output path to consider when compiling.
additionalCompilerFlags | stringList | undefined | Use this to supply compiler flags not covered by any of the properties in this module.
additionalJarFlags | stringList | undefined | Use this to supply archiver flags not covered by any of the properties in this module.
bootClassPaths | stringList | undefined | Use this if you need to specify non-standard bootstrap class files.
compilerFilePath | string | `compilerName`, prefixed by `jdkPath` if it is defined | The command to invoke when compiling Java sources.
compilerName | string | `"javac"` | The file name of the Java compiler.
enableWarnings | bool | `true` | Controls whether warnings are emitted when compiling Java sources.
interpreterFilePath | string | `interpreterName`, prefixed by `jdkPath` if it is defined | The command to invoke when executing Java code.
interpreterName | string | `"java"` | The file name of the Java interpreter.
jarFilePath | string | `jarName`, prefixed by `jdkPath` if it is defined | The command to run when creating or extracting `jar` files.
jarName | string | `"jar"` | The file name of the `jar` tool.
jdkPath | path | undefined | The base path of Java-related tools.
languageVersion | string | undefined | The Java language version to interpret source code as. If undefined, the compiler will use its default.
runtimeVersion | string | undefined | The version of the Java runtime to generate compatible bytecode for. If undefined, the compiler will use its default.
warningsAsErrors | bool | `false` | If this property is enabled, the compiler will abort where it would normally emit a warning.