# I got this \`bytebuddy\` error when executing BDD test

**URL:** <https://forum.katalon.com/t/i-got-this-bytebuddy-error-when-executing-bdd-test/146971>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [September 18, 2024, 4:27pm UTC](https://forum.katalon.com/t/i-got-this-bytebuddy-error-when-executing-bdd-test/146971 "2024-09-18T16:27:46Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![depapp](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/depapp/32/29178_2.png) [@depapp](https://forum.katalon.com/u/depapp)\
**Post date:** [October 18, 2024, 7:17am UTC](https://forum.katalon.com/t/i-got-this-bytebuddy-error-when-executing-bdd-test/146971/22 "2024-10-18T07:17:19Z")

</div>

hey everyone @kazurayam @gregorio.catalan @ffrik @dineshh @adadiagne08 @claytonmildy

I found the solution for this issue.

1. if you are using `Katalon Studio v9`, you need to use `Java/JDK/JRE 21`. you can change the configuration under `Settings --> Java --> Installed JRE`

2. you should change your package from `(default package)` to your own, for example `YourPackageName`

3. you should add the `Test Listener` on the project, here’s the example:

```groovy
// README: the Test Listener filename should be `Listener`
// README: you should change the `YourPackageName` to your own package name

import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW

class Listener {
	/**
	 * Executes before every test case starts.
	 * @param testCaseContext related information of the executed test case.
	 */
	@BeforeTestCase
	def sampleBeforeTestCase(TestCaseContext testCaseContext) {
		CucumberKW.GLUE = ['YourPackageName']
	}
}

```

1. now you should able to run your BDD test from anywhere (`from Feature Files`, `from Test Case` or `from Test Suite`)

I have following [this official documentation](https://docs.katalon.com/katalon-studio/get-started/workspace-settings/migrate-katalon-studio-from-8.x-to-9.0.0), but didn’t works 👎

if you are confuse, just ping me or you can see on the attached images

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

---

_[View the full topic](https://forum.katalon.com/t/i-got-this-bytebuddy-error-when-executing-bdd-test/146971)._
