# Maven plugin java.lang.classnotfoundexception

**URL:** <https://community.gatling.io/t/maven-plugin-java-lang-classnotfoundexception/288>\
**Category:** Gatling (Open-Source)\
**Created:** [March 1, 2013, 3:45pm UTC](https://community.gatling.io/t/maven-plugin-java-lang-classnotfoundexception/288 "2013-03-01T15:45:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ehsan\_rouhani](https://avatars.discourse-cdn.com/v4/letter/e/cab0a1/32.png) [@ehsan\_rouhani](https://community.gatling.io/u/ehsan_rouhani)\
**Post date:** [March 1, 2013, 3:45pm UTC](https://community.gatling.io/t/maven-plugin-java-lang-classnotfoundexception/288/1 "2013-03-01T15:45:04Z")

</div>

Hi,

I downloaded the sample maven project and tried to execute it while i changed the gatling version to 1.4.1 in pom.xml. when I try to run the sample simulation by mvn gatling:execute it gives me this error:

[INFO]  
[INFO] — gatling-maven-plugin:1.4.1:execute (default-cli) @ gatling-maven-project —  
java.lang.ClassNotFoundException: com.excilys.ebi.gatling.app.Gatling  
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)  
at java.security.AccessController.doPrivileged(Native Method)  
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)  
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)  
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)  
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)  
at scala\_maven\_executions.MainHelper.runMain(MainHelper.java:154)  
at scala\_maven\_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)

sorry if the question is stupid, I’m just new in to this.

Regards,  
Ehsan

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [March 4, 2013, 2:10pm UTC](https://community.gatling.io/t/maven-plugin-java-lang-classnotfoundexception/288/2 "2013-03-04T14:10:54Z")

</div>

Have you read the wiki page? [https://github.com/excilys/gatling/wiki/Maven-plugin](https://github.com/excilys/gatling/wiki/Maven-plugin)  
You have to add Gatling to the test scope.

Cheers,

Stéphane

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [March 4, 2013, 2:12pm UTC](https://community.gatling.io/t/maven-plugin-java-lang-classnotfoundexception/288/3 "2013-03-04T14:12:34Z")

</div>

Could you also upgrade to the latest version of Gatling and the sample project, please (note that we now host it on our own)?
