Causes of the "UnsupportedClassVersionError" exception

Symptoms

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.

java.lang.UnsupportedClassVersionError

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)

 

Procedure

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 #:
7 of 7
Last update:
‎05-17-2017 02:26 AM
Updated by:
 
Tags (1)