I am Getting this exception error this version of the Java Runtime only recognizes class file versions up to 65.0

While executing the script, I encountered an error. As part of the troubleshooting, I have already upgraded the Java version to Java 17. However, the issue still persists. Could you please help review the error and suggest the next steps for resolution?

1. Java compatibility mismatch (first screenshot)
geh/data/ViewException was compiled for Java 25 (class file version 69.0), but the runtime executing Katalon supports up to Java 21 (65.0). That run is therefore not using Java 17.
• Ask the owner of the JAR containing geh.data.ViewException to rebuild it for the supported execution runtime—e.g. Java 21 with --release 21 if it uses no newer APIs—and replace the incompatible JAR in the project.
• Check Java from inside the running Katalon test, not just java -version in a terminal:

groovy
println System.getProperty('java.version')
println System.getProperty('java.home')

Changing system Java does not necessarily change the runtime Katalon launches. Don’t switch Katalon to Java 25 without confirming that version is supported.

2. Missing SSH private-key file (second screenshot)
The root error is FileNotFoundException: ssh.pem (The system cannot find the file specified), at LinuxCommand.groovy:161, called by getNodes:6.
• Check the path passed to JSch.addIdentity(...). A relative path such as ssh.pem is resolved against the execution process’s working directory, not necessarily the script’s folder.
• Point it to the correct existing private-key file (prefer a configured absolute path), and ensure the account running Katalon can read it. On a remote/CI runner, the key must be provisioned there securely too. Do not upload the private key here.

Could you share the addIdentity(...) line with sensitive details redacted, plus the Java version/home printed inside Katalon? Those will help confirm the exact changes needed.

HI @nghi.phan , I have followed the recommended steps and performed the necessary validations. However, I am still experiencing the same issue. Could you please review it and help identify the root cause or provide additional troubleshooting steps?

Thanks for reporting this. Your machine may have more than one Java version installed, and Katalon Studio could be picking up the wrong one. To check, could you help us with these 3 things?

  1. In Katalon Studio, go to Window > Katalon Studio Preferences > Java > Installed JREs and send us a screenshot of that screen.
  2. Does your project use any external libraries? If so, please list them.
  3. If you can, please share your project files so we can try to reproduce the issue on our side. Feel free to remove any sensitive data first.

This guide shows how to set the default JRE for your projects: Set a new default JRE for test projects in Katalon Studio

Your screenshots show CopyDependencies.jar copying econtrol.jar and econtrolui.jar from /cots/ENet/... into your project. The error names geh/data/ViewException, which most likely lives in one of those jars. It was compiled for Java 25, but Katalon is running your tests on Java 21, so this is a Java version mismatch.

Please try the following:

  1. Install JDK 25
  2. In Katalon, go to Window > Katalon Studio Preferences > Java > Installed JREs, add JDK 25, set it as the default, and restart Katalon.
  3. Right-click your project, choose Refresh Classpath, clean the project, and run again.

Hopefully this will resolve the issue

if it still fails, the alternative is to get versions of those ENet jars built for Java 21 or lower and re-run CopyDependencies.

Most Important: your cmd screenshot appears to show login details in the command line. Please edit your post to remove that image, and change that password.

Hi @nghi.phan ,Please find the attached details for your reference. Please let me know if anything else is required from my end.

I have used for Gradle dependencies (build.gradle):

  • org.apache.logging.log4j:log4j-api:2.26.1
  • org.apache.logging.log4j:log4j-core:2.26.1
  • org.apache.logging.log4j:log4j-jcl:2.26.1
  • org.apache.logging.log4j:log4j-jul:2.26.1

Hi Nirmal,

Thank you for sharing the screenshots and dependency details.

The execution log shows that geh.data.ViewException was compiled for Java 25, while the runtime executing the test supports Java 21. Installing Java 17 or copying the existing dependency JARs will not resolve this incompatibility. The Log4j dependency list does not currently indicate that those libraries are responsible for this error.

To identify the exact library that needs updating, could you please share:
• The console output from the standalone diagnostic test we provided, including the Java version, Java home and the location of geh/data/ViewException.class. If the diagnostic test fails before producing output, please share the full error.
• The dependency section of your build.gradle, including any local JAR references, with credentials and sensitive information removed.

Once the containing JAR is identified, the next step is to obtain a Java-21-compatible build or release from the library owner and replace the incompatible copy in the project. Please retain Katalon’s bundled runtime for now rather than switching to Java 25 as a workaround.

Please also redact any passwords or private keys before sharing logs or screenshots.

Please look at @arvind.choudhary recommendation to see if that works

Hi Nirmal,

Thanks for all the details so far. Our dev team needs to reproduce the error on their side to find the cause. Could you share one of these?

  • Your Katalon project (zipped), or
  • The script you use to run the test, plus the jar files it loads (econtrol.jar, econtrolui.jar)

If the project has private data, please send it to me in a private message instead of posting it here.

Thank you!

Hi Nirmal,

Let’s try a clean reinstall. Your Katalon Studio may still be set up to use a different Java version from your earlier changes, so starting fresh is the quickest way to rule that out.

  1. Close Katalon Studio.
  2. Delete the Katalon Studio folder.
  3. Also delete the .katalon folder in your user folder (for example C:\Users\<your name>\.katalon). This clears old settings.
  4. Download the latest version from Katalon Studio Download | Katalon and install it.
  5. Don’t change the Java settings. Use the Java that comes with Katalon.
  6. Open your project and run the script again.

If you still see the same error after this, the problem is in the ENet jars (econtrol.jar, econtrolui.jar). They were built for Java 25, and Katalon runs on Java 21. In that case, please ask the team that owns those jars for a version built for Java 21 or lower.

Let us know how it goes.