# The requested class 'MyClass' can not be found in the classpath or does not extends Simulation. launched when to few resources to compile

**URL:** <https://community.gatling.io/t/the-requested-class-myclass-can-not-be-found-in-the-classpath-or-does-not-extends-simulation-launched-when-to-few-resources-to-compile/3741>\
**Category:** Gatling (Open-Source)\
**Created:** [May 26, 2017, 3:50pm UTC](https://community.gatling.io/t/the-requested-class-myclass-can-not-be-found-in-the-classpath-or-does-not-extends-simulation-launched-when-to-few-resources-to-compile/3741 "2017-05-26T15:50:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christophe\_SEBILLE](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@Christophe\_SEBILLE](https://community.gatling.io/u/Christophe_SEBILLE)\
**Post date:** [May 26, 2017, 3:50pm UTC](https://community.gatling.io/t/the-requested-class-myclass-can-not-be-found-in-the-classpath-or-does-not-extends-simulation-launched-when-to-few-resources-to-compile/3741/1 "2017-05-26T15:50:28Z")

</div>

Hi,

This message is only intended to help people facing the same problem than me :

I use a customized DockerFile previously found in [https://github.com/denvazh/gatling](https://github.com/denvazh/gatling) (thanks btw)

Everything works well in Docker.

Then I built and uploaded my image to Kubernetes and deployed my pod containing the last version of Gatling.

When I launched gatling.sh -s MyClass I had this message :  
The requested class ‘MyClass’ can not be found in the classpath or does not extends Simulation

But the MyClass.scala file was already in /opt/galing/user-files/simulations folder !

I removed the stdout redirection from the compliation command line in gatling.sh and here is the output :

Warning: Unknown option -s  
Warning: Unknown argument ‘MyClass’  
Killed

→ compilation fails silently, gatling program cannot find the compiled classes and cannot load simulations.

After having removed cpu and memory limits on my k8s pod, everything works like a charm !

Regards,

Christophe
