Skip to main content Skip to complementary content

Configuring Java versions to run Jobs or Microservices

Configure your Talend Remote Engine to execute Jobs or Microservices using the appropriate Java version based on each artifact Java compatibility level.

By default, a Talend Remote Engine uses the Java version of its environment to execute Jobs or Microservices. From Talend Remote Engine v2.13 to v2.13.9, Java 17 is mandatory for engine startup. Starting from v2.14.0, Java 21 can also be used for engine startup. Java 21 artifact execution support starts from v2.14.2.

To select Java versions for task execution, choose the guidance based on your Talend Remote Engine version:

Troubleshooting: If you have adaptive mode enabled but Java 21 artifacts keep running on Java 17 instead of Java 21 despite your configuration, see Tasks built with Java 21 run on Java 17 when adaptive mode is enabled on the remote engine for resolution steps.

How adaptive mode works

Adaptive mode dynamically selects the Java runtime for each artifact based on its Java compatibility level. This helps you execute artifacts from different Studio versions without rebuilding.
Information noteTip: The artifact's Java compatibility level is set in Talend Studio.

Typical use cases for adaptive mode

  • Jobs built to run on Java 8:

    These Jobs are compiled with the Java 8 compliance level and do not include --add-opens (the Enable Java 17 compatibility checkbox is not selected). They are generally compatible with Java 11. Setting both Java 8 and 11 or setting Java 11 alone in adaptive mode ensures they run correctly.

    Information noteTip: Java 8 does not support --add-opens.
  • Standard (data integration) Jobs built to run on Java 11:

    These Jobs are compiled with the Java 8 compliance level and include --add-opens where needed (the Enable Java 17 compatibility checkbox is selected).

    They are generally compatible with Java 11. Running them on Java 17 is possible but can be error-prone, as --add-opens may lack necessary modules for Java 17 to correctly work.

    Setting Java 11 in adaptive mode allows it to handle these Jobs.

  • Jobs built to run on Java 17:

    These Jobs are compiled with the Java 17 compliance level. They run on the Java 17 instance set in adaptive mode or, if unset, on the engine’s default Java instance.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!