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

**URL:** <https://forum.katalon.com/t/i-am-getting-this-exception-error-this-version-of-the-java-runtime-only-recognizes-class-file-versions-up-to-65-0/195065>\
**Category:** Desktop Testing\
**Tags:** katalon-studio\
**Created:** [November 4, 2026, 7:24am UTC](https://forum.katalon.com/t/i-am-getting-this-exception-error-this-version-of-the-java-runtime-only-recognizes-class-file-versions-up-to-65-0/195065 "2026-11-04T07:24:08Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![nirmalvenkatraman.v](https://avatars.discourse-cdn.com/v4/letter/n/f6c823/32.png) [@nirmalvenkatraman.v](https://forum.katalon.com/u/nirmalvenkatraman.v)\
**Post date:** [November 4, 2026, 7:24am UTC](https://forum.katalon.com/t/i-am-getting-this-exception-error-this-version-of-the-java-runtime-only-recognizes-class-file-versions-up-to-65-0/195065/1 "2026-11-04T07:24:08Z")

</div>

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?

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/7/7/777aca4fb761f44481025fa0076cae38699d5aa1.png)

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/5/8/585029913a86ed8a652746af87f9f0c61577a49d.png)

---

<div class="post-metadata">

**Author:** ![nghi.phan](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/nghi.phan/32/30970_2.png) [@nghi.phan](https://forum.katalon.com/u/nghi.phan)\
**Post date:** [November 4, 2026, 7:35am UTC](https://forum.katalon.com/t/i-am-getting-this-exception-error-this-version-of-the-java-runtime-only-recognizes-class-file-versions-up-to-65-0/195065/2 "2026-11-04T07:35:34Z")

</div>

**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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![nirmalvenkatraman.v](https://avatars.discourse-cdn.com/v4/letter/n/f6c823/32.png) [@nirmalvenkatraman.v](https://forum.katalon.com/u/nirmalvenkatraman.v)\
**Post date:** [November 4, 2026, 8:58am UTC](https://forum.katalon.com/t/i-am-getting-this-exception-error-this-version-of-the-java-runtime-only-recognizes-class-file-versions-up-to-65-0/195065/3 "2026-11-04T08:58:00Z")

</div>

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?

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/1/8/18bcb5df8f8b07f5defef318f4faf963fbf64a64.png)

---

<div class="post-metadata">

**Author:** ![nghi.phan](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/nghi.phan/32/30970_2.png) [@nghi.phan](https://forum.katalon.com/u/nghi.phan)\
**Post date:** [November 4, 2026, 9:31am UTC](https://forum.katalon.com/t/i-am-getting-this-exception-error-this-version-of-the-java-runtime-only-recognizes-class-file-versions-up-to-65-0/195065/4 "2026-11-04T09:31:25Z")

</div>

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](https://docs.katalon.com/katalon-studio/get-started/workspace-settings/katalon-studio-preferences/set-a-new-default-jre-for-test-projects-in-katalon-studio)

---

<div class="post-metadata">

**Author:** ![arvind.choudhary](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/arvind.choudhary/32/33165_2.png) [@arvind.choudhary](https://forum.katalon.com/u/arvind.choudhary)\
**Post date:** [November 4, 2026, 11:55am UTC](https://forum.katalon.com/t/i-am-getting-this-exception-error-this-version-of-the-java-runtime-only-recognizes-class-file-versions-up-to-65-0/195065/5 "2026-11-04T11:55:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![arvind.choudhary](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/arvind.choudhary/32/33165_2.png) [@arvind.choudhary](https://forum.katalon.com/u/arvind.choudhary)\
**Post date:** [November 4, 2026, 11:56am UTC](https://forum.katalon.com/t/i-am-getting-this-exception-error-this-version-of-the-java-runtime-only-recognizes-class-file-versions-up-to-65-0/195065/6 "2026-11-04T11:56:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![arvind.choudhary](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/arvind.choudhary/32/33165_2.png) [@arvind.choudhary](https://forum.katalon.com/u/arvind.choudhary)\
**Post date:** [November 4, 2026, 11:58am UTC](https://forum.katalon.com/t/i-am-getting-this-exception-error-this-version-of-the-java-runtime-only-recognizes-class-file-versions-up-to-65-0/195065/7 "2026-11-04T11:58:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![nirmalvenkatraman.v](https://avatars.discourse-cdn.com/v4/letter/n/f6c823/32.png) [@nirmalvenkatraman.v](https://forum.katalon.com/u/nirmalvenkatraman.v)\
**Post date:** [November 4, 2026, 12:38pm UTC](https://forum.katalon.com/t/i-am-getting-this-exception-error-this-version-of-the-java-runtime-only-recognizes-class-file-versions-up-to-65-0/195065/8 "2026-11-04T12:38:34Z")

</div>

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

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/e/4/e40c2711b6fdbb8d2432fdf276cfb68277e3c41c.png)

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/5/f/5f3aa3e5b32a4eba248ff97b903b760ae5ce820f.png)

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/f/9/f9bf65e96f7fd1a9068da759d2b82fea8a26285a.png)

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/3/d/3db35533852f5f5d1cb7edd21ebbe4643ccd1f0b.png)

---

<div class="post-metadata">

**Author:** ![nirmalvenkatraman.v](https://avatars.discourse-cdn.com/v4/letter/n/f6c823/32.png) [@nirmalvenkatraman.v](https://forum.katalon.com/u/nirmalvenkatraman.v)\
**Post date:** [November 4, 2026, 12:38pm UTC](https://forum.katalon.com/t/i-am-getting-this-exception-error-this-version-of-the-java-runtime-only-recognizes-class-file-versions-up-to-65-0/195065/9 "2026-11-04T12:38:40Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![nghi.phan](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/nghi.phan/32/30970_2.png) [@nghi.phan](https://forum.katalon.com/u/nghi.phan)\
**Post date:** [November 4, 2026, 12:57pm UTC](https://forum.katalon.com/t/i-am-getting-this-exception-error-this-version-of-the-java-runtime-only-recognizes-class-file-versions-up-to-65-0/195065/10 "2026-11-04T12:57:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nghi.phan](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/nghi.phan/32/30970_2.png) [@nghi.phan](https://forum.katalon.com/u/nghi.phan)\
**Post date:** [November 9, 2026, 8:03am UTC](https://forum.katalon.com/t/i-am-getting-this-exception-error-this-version-of-the-java-runtime-only-recognizes-class-file-versions-up-to-65-0/195065/11 "2026-11-09T08:03:34Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![nghi.phan](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/nghi.phan/32/30970_2.png) [@nghi.phan](https://forum.katalon.com/u/nghi.phan)\
**Post date:** [November 9, 2026, 8:13am UTC](https://forum.katalon.com/t/i-am-getting-this-exception-error-this-version-of-the-java-runtime-only-recognizes-class-file-versions-up-to-65-0/195065/12 "2026-11-09T08:13:32Z")

</div>

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](https://katalon.com/download) 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.
