# Gatling.conf core\>directory\>simulations not working

**URL:** <https://community.gatling.io/t/gatling-conf-core-directory-simulations-not-working/8896>\
**Category:** Gatling (Open-Source)\
**Created:** [April 16, 2024, 9:33am UTC](https://community.gatling.io/t/gatling-conf-core-directory-simulations-not-working/8896 "2024-04-16T09:33:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andy](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Andy](https://community.gatling.io/u/Andy)\
**Post date:** [April 16, 2024, 9:33am UTC](https://community.gatling.io/t/gatling-conf-core-directory-simulations-not-working/8896/1 "2024-04-16T09:33:40Z")

</div>

I have this dir structure:

root/src/main/java/com/blah/simulation/Simulation1

and I have updated gatling.conf to have gatling \> core \> directory \> simulations set to: “com/blah/simulation”

when I run the following from the root dir:  
./mvnw gatling:test -Dgatling.simulationClass=Simulation1

I get:  
java.lang.ClassNotFoundException: Simulation1

what is the correct format for setting the simulation class path in the gatling.conf?

---

<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:** [April 16, 2024, 9:38am UTC](https://community.gatling.io/t/gatling-conf-core-directory-simulations-not-working/8896/2 "2024-04-16T09:38:22Z")

</div>

Don’t do that. These `gatling.conf` options are going away in Gatling 3.11.0 that is going to be released next week.  
Stick to a standard maven project where the simulations live in the maven project sources.

---

<div class="post-metadata">

**Author:** ![Andy](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Andy](https://community.gatling.io/u/Andy)\
**Post date:** [April 16, 2024, 9:41am UTC](https://community.gatling.io/t/gatling-conf-core-directory-simulations-not-working/8896/3 "2024-04-16T09:41:20Z")

</div>

thanks

so for me that would be under root/main/java?  
can they still live under a simulation sub-folder, or should the simulation classes just exist under root/main/java?

---

<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:** [April 16, 2024, 9:52am UTC](https://community.gatling.io/t/gatling-conf-core-directory-simulations-not-working/8896/4 "2024-04-16T09:52:14Z")

</div>

I guess you’re not familiar with Java.

> so for me that would be under root/main/java?

No. Assuming `root` is where your `pom.xml` file is located, that would be `root/src/main/java` or `root/src/test/java`.

> can they still live under a simulation sub-folder

See [Java Packages](https://www.w3schools.com/java/java_packages.asp)

Assuming you want you class in `root/src/main/java/foo`, you’ll have to add a package header line in your class: `package foo;`.

You should download a copy of the demo project for maven + Java: [GitHub - gatling/gatling-maven-plugin-demo-java](https://github.com/gatling/gatling-maven-plugin-demo-java)

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/b/b148e0742de35c6280726cabf3ecd3de2d320f63.png) [@system](https://community.gatling.io/u/system)\
**Post date:** [May 16, 2024, 9:52am UTC](https://community.gatling.io/t/gatling-conf-core-directory-simulations-not-working/8896/5 "2024-05-16T09:52:42Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
