Change a Job's Java Version

Change the Java version used in a job:

  1. Open the job’s configuration page.
  2. Click Settings the Gear icon.
  3. Click the Software tab.
  4. In Available Software, from the Java drop-down list, select the Java SE version (1.8.x, 11.x, 17.x, or 18.x) that you want to use.

    Note:

    Java 1.8.x is deprecated in the 22.10.0 release. Java 17.x has been added to all system build executor templates. Oracle recommends that you upgrade any of your jobs that currently use Java 1.8.x to this version.

    Before changing a job's Java version, ask your organization administrator to add the version you want to use in the job's build executor template if you don't see the version already there. If an organization administrator adds multiple version of Java to a build executor template, users can select the Java version they want to use in a job from the job's configuration page.

    Instead of selecting Java, you could select Java 1.8.x (Graal VM). GraalVM is a universal virtual machine for running applications written in JavaScript, Python, Ruby, R, JVM-based languages like Java, Scala, Groovy, Kotlin, Clojure, and LLVM-based languages such as C and C++. To learn more about GraalVM, see https://www.graalvm.org/docs/.

  5. Click Save.