# How to run single simulation class from command line when gatling and simulation classes are at different folder

**URL:** <https://community.gatling.io/t/how-to-run-single-simulation-class-from-command-line-when-gatling-and-simulation-classes-are-at-different-folder/5067>\
**Category:** Gatling (Open-Source)\
**Created:** [June 6, 2019, 6:59am UTC](https://community.gatling.io/t/how-to-run-single-simulation-class-from-command-line-when-gatling-and-simulation-classes-are-at-different-folder/5067 "2019-06-06T06:59:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rakesh\_Sharma](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@Rakesh\_Sharma](https://community.gatling.io/u/Rakesh_Sharma)\
**Post date:** [June 6, 2019, 6:59am UTC](https://community.gatling.io/t/how-to-run-single-simulation-class-from-command-line-when-gatling-and-simulation-classes-are-at-different-folder/5067/1 "2019-06-06T06:59:23Z")

</div>

Hi All,

Just trying to figure out to execute a simulation class from the command line,  
Gatling is at location /home/user/gatling  
and simulation class is at /src/test/scala/com/Simulator/  
when trying from gatling/bin folder as follows:

./gatling.sh -s /src/test/scala/com/Simulator/ , getting classnotfound error.

Please help.

Thanks,  
Rakesh

---

<div class="post-metadata">

**Author:** ![Siegfried\_Goeschl](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@Siegfried\_Goeschl](https://community.gatling.io/u/Siegfried_Goeschl)\
**Post date:** [June 23, 2019, 6:46am UTC](https://community.gatling.io/t/how-to-run-single-simulation-class-from-command-line-when-gatling-and-simulation-classes-are-at-different-folder/5067/2 "2019-06-23T06:46:43Z")

</div>

Hi Rakesh,

since I’m working on a similar problem that is the command line which works foe me

`gatling.sh -s computerdatabase.BasicSimulation -bf /Users/sgoeschl/work/github/sgoeschl/readonly/target/ -rf /Users/sgoeschl/work/github/sgoeschl/readonly/results/ -sf /Users/sgoeschl/work/github/sgoeschl/readonly/user-files/`

Thanks in advance,

Siegfried Goeschl
