Skip to main content Skip to complementary content

Setting up the Java version for Routines in Talend Studio

Data integration Jobs and Routes are compiled with Java 17. Big Data Jobs are compiled with Java 8, but with parameters that make them Java 17 compliant. You can change this compliance level to Java 8 for Routines used in Big Data Jobs.

Procedure

  1. Click Project settings on the toolbar of the Talend Studio main window, or click File > Edit Project Properties from the menu bar to open the Project Settings dialog box.
  2. Expand the Build node and click Java Version to open the corresponding view.
    Java Version configuration in the Project Settings dialog box.

    You can change the Routine compliance level to Java 8 for Routines used in Big Data Jobs. For more information about the compiler compliance level compatibility, see Compatible Java Environments.

  3. You can further configure the Java internal modules, for example to reduce the number of JVM warnings and fatal errors that occur when executing Jobs with Java 17.
    Click Module access settings under Java Version to open this view.
    • In the Default tab, you can view the Java internal modules for Talend components, the Talend Component Kit framework, and the Big Data distributions.
    • In the Custom tab, you can configure the Java internal modules for your custom components and the global Java internal modules for all Jobs and Routes.
    • When no Java internal module is configured for a given Job, you may get this kind of error:
      Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private static volatile java.net.Authenticator
                            java.net.Authenticator.theAuthenticator accessible: module java.base does not "opens java.net" to unnamed module @121f97fb
    • Jobs built by Talend Studio will have the --add-opens parameters in the job.sh or job.bat script files. For example:
      --add-opens=java.base/java.net=ALL-UNNAMED
    The --add-opens parameter is also added in the Java command for all the tRunJob components that are set up as independent.
  4. Click Apply and Close to apply your changes and close the dialog box.

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!