Subject: Issue with Katalon 9.6.0 and JDK 1.8: Browser Not Redirecting and Class Version Error

Description:
I am currently using Katalon Studio version 9.6.0 with JDK 1.8. When I run a test case, the job progress shows as “done,” but the browser does not redirect to the intended website for testing. Additionally, I am encountering the following error in the console:

Caught: java.lang.UnsupportedClassVersionError: com/kms/katalon/core/driver/internal/DriverCleanerCollector has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
java.lang.UnsupportedClassVersionError: com/kms/katalon/core/driver/internal/DriverCleanerCollector has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at TempTempCase1726301247321.run(TempTempCase1726301247321.groovy:15)

Test Details

Testing URL: Test Login | Practice Test Automation

  • Gherkin Script (login.feature):
    Feature: Login Page

    Scenario: TC.Log.001.001-User want to login with valid credentials
    Given User is on the Login page
    #When User type username student into Username field
    #And User type password Password123 into Password field
    #And User push Submit button
    #Then User successfully login with valid credentials and User get message Successfully Logged in

  • Groovy Script (login.groovy):
    package stepDefinition

import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject

import com.kms.katalon.core.annotation.Keyword
import com.kms.katalon.core.checkpoint.Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling
import com.kms.katalon.core.testcase.TestCase
import com.kms.katalon.core.testdata.TestData
import com.kms.katalon.core.testobject.TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import com.kms.katalon.core.webui.keyword.internal.WebUIAbstractKeyword
import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows

import cucumber.api.java.en.Given
import internal.GlobalVariable

public class Login {
@Given(“User is on the Login page”)
public void User_is_on_the_Login_page() {
WebUI.openBrowser(‘Test Login | Practice Test Automation’)
WebUI.maximizeWindow()
WebUI.delay(5)
WebUI.closeBrowser()
}
}

Questions:

  1. How can I resolve the java.lang.UnsupportedClassVersionError issue with Katalon Studio?
  2. Why is the browser not opening or redirecting to the specified URL during test execution?
  3. Are there any additional configuration steps needed to ensure compatibility with JDK 1.8?
1 Like

Hi there, :wave:

Thank you very much for your topic! It may take a little while before Katalon team member or others forum members respond to you.

In the meantime, you can double-check your post to see if you can add any extra information i.e. error logs, HTML codes, screenshots, etc. Check out this posting guide to help us help you better!

Thanks! :sunglasses:
Katalon Community team

You should stop using JDK 1.8 inside Katalon Studio 9.6.0

If you want to stick to JDK 1.8, you need to downgrade to some older version of Katalon Studio (v8.x?) which was compiled by JDK 1.8.

See Class File Versions - javaalmanac.io for the class version numbers of each JDK versions.

You can interprete the error message as:

Caught: java.lang.UnsupportedClassVersionError: com/kms/katalon/core/driver/internal/DriverCleanerCollector has been compiled by a more recent version of the Java Runtime (class file version 61.0 = Java 17), this version of the Java Runtime only recognizes class file versions up to 52.0 = Java 1.8

Why do you want to use JDK1.8 with Katalon Studio 9.6.0?
Why don’t you let KS 9.6.0 to use JDK17 which is bundled inside KS?

Dear Katalon Community Team,

Thank you for your prompt response and the clarifications regarding the Java versions. I understand now that Katalon Studio 9.6.0 is designed to work with JDK 17, and that JDK 1.8 is not compatible with this version.

I am reaching out regarding the ongoing issue with Katalon Studio 9.6.0, specifically when using JDK 17 and JDK 8.

  1. With JDK 17: I encountered the following error during test execution:

=============== ROOT CAUSE =====================

Caused by: java.lang.SecurityException: class “module-info”'s signer information does not match signer information of other classes in the same package

For trouble shooting, please visit: https://docs.katalon.com/katalon-studio/docs/troubleshooting.html

(attachments)






In this Katalon user forum, there are several previous posts about the problem
“Caused by: java.lang.SecurityException: class “module-info”'s signer information does not match signer information of other classes in the same package”.

Some posts include solutions. Please make a search for those information. For example

I personally do not have any hands-on experience about this issue. So, do not ask me for more info.