Loading

java.lang.UnsupportedClassVersionError: CLASS_NAME : Unsupported major.minor version CLASS_VERSION

Publiceringsdatum: Jul 25, 2025
Lösning

SYMPTOM

When running a Mule application you are getting errors like the following:
java.lang.UnsupportedClassVersionError: CLASS_NAME : Unsupported major.minor version CLASS_VERSION

This error appears when using Mule standalone or the Anypoint Studio. 


CAUSE

The class version is not compatible with the version of Java where it is trying to be ran.


SOLUTION

Use the Java version required by the class throwing the error. The Java version that correlates to each class are the following:
Java SE 18 =   62
Java SE 17 =   61
Java SE 16 =   60
Java SE 15 =   59
Java SE 14 =   58
Java SE 13 =   57
Java SE 12 =   56
Java SE 11 =   55
Java SE 10 =   54
Java SE 9 =    53
Java SE 8 =    52
Java SE 7 =    51
Java SE 6.0 =  50
Java SE 5.0 =  49
JDK 1.4 =      48
JDK 1.3 =      47
JDK 1.2 =      46
JDK 1.1 =      45

In the Anypoint Studio 7.8 and later versions, although they contain an embedded JDK, if the machine has a JDK version it should one of the JDK compatible with Studio too. Please install on of the recommended Java JDK for Mule Runtime 4.4.0, which are the latest versions of AdoptOpenJDK 8 or 11 and the HotSpot JVM as documented here.
Knowledge-artikelnummer

001120464

 
Laddar
Salesforce Help | Article