# Gradlew java/lang/NoClassDefFoundError:

**URL:** <https://community.gatling.io/t/gradlew-java-lang-noclassdeffounderror/5964>\
**Category:** Gatling (Open-Source)\
**Created:** [January 20, 2021, 8:25pm UTC](https://community.gatling.io/t/gradlew-java-lang-noclassdeffounderror/5964 "2021-01-20T20:25:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GIRISH\_K\_S](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@GIRISH\_K\_S](https://community.gatling.io/u/GIRISH_K_S)\
**Post date:** [January 20, 2021, 8:25pm UTC](https://community.gatling.io/t/gradlew-java-lang-noclassdeffounderror/5964/1 "2021-01-20T20:25:17Z")

</div>

I just cloned the [GitHub - gatling/gatling-gradle-plugin-demo: Showcase of the Gatling Plugin for Gradle](https://github.com/gatling/gatling-gradle-plugin-demo.git). when i open and run the project in Intellij using the following command:

> **[GitHub - gatling/gatling-gradle-plugin-demo: Showcase of the Gatling Plugin...](https://github.com/gatling/gatling-gradle-plugin-demo)**
>
> Showcase of the Gatling Plugin for Gradle. Contribute to gatling/gatling-gradle-plugin-demo development by creating an account on GitHub.

I get following error:

Picked up JAVA\_TOOL\_OPTIONS: -agentlib:jvmhook  
Picked up \_JAVA\_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:“C:\Program Files (x86)\Micro Focus\Unified Functional Testing\bin\java\_shared\classes\jasmine.jar”

> Task :gatlingRun-computerdatabase.BasicSimulation FAILED  
> Error occurred during initialization of VM  
> java/lang/NoClassDefFoundError: java/lang/Object  
> Picked up JAVA\_TOOL\_OPTIONS: -agentlib:jvmhook  
> Picked up \_JAVA\_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:“C:\Program Files (x86)\Micro Focus\Unified Functional Testing\bin\java\_shared\classes\jasmine.jar”

FAILURE: Build failed with an exception.

- What went wrong:  
Execution failed for task ‘:gatlingRun-computerdatabase.BasicSimulation’.

> There’re failed simulations: computerdatabase.BasicSimulation

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

- Get more help at [https://help.gradle.org](https://help.gradle.org)

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.  
Use ‘–warning-mode all’ to show the individual deprecation warnings.  
See [Command-Line Interface](https://docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warnings)

BUILD FAILED in 9s  
4 actionable tasks: 4 executed  
Picked up JAVA\_TOOL\_OPTIONS: -agentlib:jvmhook

Thanks,  
Girish

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [January 20, 2021, 8:40pm UTC](https://community.gatling.io/t/gradlew-java-lang-noclassdeffounderror/5964/2 "2021-01-20T20:40:17Z")

</div>

It looks like your Java installation is completely broken.  
From a quick search, it looks like this is caused by a product from Micro Focus: [https://stackoverflow.com/questions/10324186/error-message-in-trying-to-run-java](https://stackoverflow.com/questions/10324186/error-message-in-trying-to-run-java)  
I recommend you install [a proper standard JDK](https://adoptopenjdk.net/) that is not tampered by a third party vendor (then check your PATH to make sure you have the correct one).

---

<div class="post-metadata">

**Author:** ![GIRISH\_K\_S](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@GIRISH\_K\_S](https://community.gatling.io/u/GIRISH_K_S)\
**Post date:** [January 20, 2021, 9:15pm UTC](https://community.gatling.io/t/gradlew-java-lang-noclassdeffounderror/5964/3 "2021-01-20T21:15:56Z")

</div>

Thanks that helped resolve the issue.

But i still keep getting this warning

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.  
Use ‘–warning-mode all’ to show the individual deprecation warnings.  
See [https://docs.gradle.org/6.6.1/userguide/command\_line\_interface.html#sec:command\_line\_warnings](https://docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warnings)

I have to use gradlew Clean the run the command : gradlew gatlingRun-computerdatabase.BasicSimulation for it to work.

Thanks,  
Girish

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [January 20, 2021, 9:25pm UTC](https://community.gatling.io/t/gradlew-java-lang-noclassdeffounderror/5964/4 "2021-01-20T21:25:59Z")

</div>

warnings are warnings, not errors

---

<div class="post-metadata">

**Author:** ![GIRISH\_K\_S](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@GIRISH\_K\_S](https://community.gatling.io/u/GIRISH_K_S)\
**Post date:** [January 20, 2021, 9:28pm UTC](https://community.gatling.io/t/gradlew-java-lang-noclassdeffounderror/5964/5 "2021-01-20T21:28:17Z")

</div>

But it does not run the simulation. it just returns warning. I need to do a gradle clean for simulation to run.
