Skip to main content
Version: 2.8 (deprecated)

javac


The javac Java source compiler.

Backend: ``

Config section: [javac]

Basic options

None

Advanced options

jdk

--javac-jdk=<str>
PANTS_JAVAC_JDK
pants.toml
[javac]
jdk = <str>
default: adopt:1.11

The JDK to use for invoking javac.

This string will be passed directly to Coursier's --jvm parameter. Run cs java --available to see a list of available JVM versions on your platform.

If the string 'system' is passed, Coursier's --system-jvm option will be used instead, but note that this can lead to inconsistent behavior since the JVM version will be whatever happens to be found first on the system's PATH.

Deprecated options

None

None