Hi,
We were using Katalon 8.6.8, and KRE was working without any issues. Now, I have upgraded KSE to 10.1.0 and installed the same KRE version. However, while running test cases in KRE, I am encountering the following error:
2025-02-28 12:19:41.617 ERROR c.k.k.core.keyword.internal.KeywordMain - These following reason:
[META-INF/versions/18/module-info has been compiled by a more recent version of the Java Runtime (class file version 62.0), this version of the Java Runtime only recognizes class file versions up to 61.0]
2025-02-28 12:19:41.640 ERROR c.k.k.core.keyword.internal.KeywordMain - Keyword runWithCucumberRunner has failed.
I am unable to execute test cases using KRE. I have tried installing JDK 17 and 18, but the issue persists. Additionally, I couldn’t find specific steps in the documentation for upgrading KRE properly.
Could you please provide guidance on how to resolve this issue ?
The error message indicates a Java version compatibility issue. Specifically, Katalon Runtime Engine (KRE) is trying to execute a module compiled with Java 18 (class file version 62.0), but the installed Java Runtime only supports up to Java 17 (class file version 61.0).
The workarounds you can try are:
1. Verify Your Katalon Version’s Java Requirement
Katalon Studio 10.1.0 requires JDK 17 (not Java 18).
KRE should match the Java version required by KSE.
Check which Java version Katalon is using by running:
java -version
Ensure it outputs something like:
openjdk version "17.0.x" 202x-xx-xx
2. Ensure KRE is Using the Correct JDK
If you’ve installed JDK 17 but KRE is still using an older version, you can force KRE to use the correct JDK by:
I have tried all the approaches you shared but encountered the same error. Later, I found that it was due to changes in ‘Run with Cucumber Runner’ in the latest version of Katalon. After updating the glue configuration in the code, the issue was resolved.
However, the error message was quite misleading, making it seem like a JDK-related issue, causing unnecessary time to be spent troubleshooting it. Even in the Katalon Documentation, it is mentioned.
I’m sharing all the details here to help others avoid spending too much time debugging this issue."