Causes of the "UnsupportedClassVersionError" exception


This error can occur when you execute a Job script outside of Talend Studio, and the JVM used to execute the Job is different from the JVM used to compile the Job.


If you don't know which JVM the machine has, you can execute the following command at the command prompt:

java -version

In the following Windows example, the java version is "1.6.0_11".

C:\Documents and Settings\Administrator>java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)



This problem can be fixed by rebuilding the Job with the same JVM version as the one on the machine where the Job is executed. Follow these steps:

  1. Execute the command to check the JDK version in the execution environment:

    java -version
  2. Refer to this page to rebuild the Job with the correct JVM version.
  3. Export the Job script again and move it to the target system or re-generate the Job and deploy it to the Job server in Talend Administrator Center.
Version history
Revision #:
8 of 8
Last update:
‎09-28-2018 11:59 PM
Updated by: