KRE 10.1.0 Is giving Java Runtime error

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 ?

1 Like

Hi @shashi1991.s,

Thank you for sharing your 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:

  • Setting the JAVA_HOME environment variable:

    export JAVA_HOME=/path/to/jdk-17
    export PATH=$JAVA_HOME/bin:$PATH
    

    (For Windows: Modify system environment variables)

  • Running KRE explicitly with Java 17:

    /path/to/jdk-17/bin/java -jar katalonc -args
    

3. Reinstall KRE to Match KSE Version

  • Uninstall the old KRE and reinstall the version that matches KSE 10.1.0.
  • Download the correct KRE version from the Katalon website.
  • Try running your test cases again.

4. Clear Cache and Dependencies*

  • Delete the Libs folder and bin folder from your Katalon project, then restart KSE/KRE.
  • Regenerate dependencies by opening Katalon Studio and selecting:
    Project → Clean up
    
  • Try running your test cases again.

Also, I found a similar discussion here which might help:

Let me know if it works/not work. Thank you

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."


your @shashi1991.s issue seems about BDD,
you better read the solution here I got this `bytebuddy` error when executing BDD test - #22 by depapp