Summary
Cucumber feature files are not executing in Katalon Studio 10.2.4 on certain projects. Although setup is correct (step definitions, Gherkin syntax, glue code), execution fails or shows glue not matched error. Works in one sample project but fails in others with the same structure.
Steps to reproduce
Create a new Katalon Studio project.
Add a Cucumber feature file in Include/features/Web.feature:
Feature: Hello feature
Scenario: Print Hello
Given I print hello
Create a corresponding step definition in Include/scripts/groovy/stepdefs/WebDef.groovy:
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
CucumberKW.runFeatureFile('Include/features/Web.feature')
Expected Results
Feature file should execute and console should show: Hello printed from Katalon step definition
Actual Results
Feature file does not execute
Right-click > Run with Cucumber does nothing or fails silently
Error shown in logs:
java.lang.UnsupportedClassVersionError:
META-INF/versions/21/com/fasterxml/jackson/core/io/doubleparser/FastDoubleSwar
has been compiled by a more recent version of the Java Runtime (class file version 65.0),
this version of the Java Runtime only recognizes class file versions up to 61.0
In some cases:
Glue code does not match step definition
Set it as default in Katalon: File > Settings > Java Development Kits > Select Java 21
If upgrade isn’t possible:
3.Downgrade conflicting dependencies* (e.g., Jackson) to versions compatible with Java 17. Check if older versions (e.g., Jackson 2.18.0) work with your Cucumber plugins.
Step 2: Investigate Cucumber/Jackson Dependencies
The error stems from Jackson’s FastDoubleSwar class in a project’s dependencies.
Troubleshoot:
Check Project Dependencies (if using Gradle/Maven):
Issue Solved – Big Thanks to the Katalon Community!
Hi @kazurayam@dineshh
Thank you for sharing your solutions with me!
I was facing the UnsupportedClassVersionError (class file version 65.0 vs 61.0), and it had me stuck for a while. Thanks to the helpful suggestions and support from the Katalon Community, I was able to identify the problem with the JAR compatibility and resolve it by using Java 17-supported libraries.
Really appreciate the guidance and quick responses. It’s great to be part of such a responsive and knowledgeable group. Looking forward to learning more and contributing back!