i am following the documentation tutorial of spring cloud data flow and when i try to run the default task timestamp i face this error : stderr: Error: LinkageError occurred while loading main class org.springframework.boot.loader.launch.JarLauncher java.lang.UnsupportedClassVersionError: org/springframework/boot/loader/launch/JarLauncher has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
im running scdf through docker (version 2.11.5) and my systems java version is 17
i am following the documentation tutorial of spring cloud data flow and when i try to run the default task timestamp i face this error : stderr: Error: LinkageError occurred while loading main class org.springframework.boot.loader.launch.JarLauncher java.lang.UnsupportedClassVersionError: org/springframework/boot/loader/launch/JarLauncher has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
im running scdf through docker (version 2.11.5) and my systems java version is 17
Share Improve this question asked Feb 6 at 9:02 Black JinsoulBlack Jinsoul 132 bronze badges 2- Timestamp Batch Task » 2.0.2 using this version of timestamp worked – Black Jinsoul Commented Feb 6 at 11:40
- Please provide enough code so others can better understand or reproduce the problem. – Community Bot Commented Feb 6 at 18:58
1 Answer
Reset to default 0jinsoul
- The 2.0.x versions run w/ Java8
- The 3.0.x versions run w/ Java8+
SCDF by default uses Java 8 when running apps. You can adjust this by setting BP_JVM_VERSION to -jdk17
(e.g...)
export BP_JVM_VERSION=-jdk17