Interview Prep/Jenkins/Agents, executors & the queue

A static agent takes builds then fails `java.lang.UnsupportedClassVersionError: hudson/remoting/Launcher has been compiled by a more recent version of the Java Runtime (class file version 61.0)`

IntermediateTroubleshootingAgents, executors & the queue
Answer

Likely causes → The agent runs an older Java (11 = class file 55) while agent.jar requires Java 17 (61).

Diagnose → java -version on the agent and the Java path used by the launcher (SSH launcher's JavaPath setting).

Fix → Install JDK 17 or 21 on the agent and point the launcher at it; build tools can still use another JDK via tools or JAVA_HOME in the build.

Prevent → Bake agent images/VMs with the supported Java; check before core upgrades.

All Jenkins questions Roadmap: Jenkins

More on Agents, executors & the queue