Yang Guo
10/22/2025, 1:14 AMCaused by: java.lang.UnsupportedClassVersionError: org/apache/flink/agents/runtime/env/RemoteExecutionEnvironment$RemoteAgentBuilder has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
I am not sure which part makes the Java runtime doesn't match. Could anyone suggest possible reason?
flink-agent-examples: build locally with jdk11
flink-agent-dist: download from official website.
flink: download from official website.
local java env:
openjdk version "11.0.28" 2025-07-15 LTS
OpenJDK Runtime Environment Zulu11.82+19-CA (build 11.0.28+6-LTS)
OpenJDK 64-Bit Server VM Zulu11.82+19-CA (build 11.0.28+6-LTS, mixed mode)
Command I run:
./flink-1.20.3/bin/flink run -c org.apache.flink.agents.examples.WorkflowSingleAgentExample ./flink-agents-0.1.0/flink-agents-examples-0.1-SNAPSHOT.jarXintong Song
10/22/2025, 1:27 AMXintong Song
10/22/2025, 1:33 AMYang Guo
10/22/2025, 1:46 AMXintong Song
10/22/2025, 1:57 AMYang Guo
10/22/2025, 2:07 AM