# errors in eclipse

**URL:** <https://community.gatling.io/t/errors-in-eclipse/383>\
**Category:** Gatling (Open-Source)\
**Created:** [May 14, 2013, 2:31pm UTC](https://community.gatling.io/t/errors-in-eclipse/383 "2013-05-14T14:31:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zique\_Sousa](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zique\_Sousa](https://community.gatling.io/u/Zique_Sousa)\
**Post date:** [May 14, 2013, 2:31pm UTC](https://community.gatling.io/t/errors-in-eclipse/383/1 "2013-05-14T14:31:48Z")

</div>

I am trying to configure Eclipse to be able to run gatling test. I have a file that I created using Gatling recorder, however in eclipse I get bunch of errors like  
grizzled-slf4j\_2.9.2-0.6.10.jat is cross-compiled with an incompatible version of Scala(2.9.2)

any ideas why I am getting this?

---

<div class="post-metadata">

**Author:** ![Zique\_Sousa](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zique\_Sousa](https://community.gatling.io/u/Zique_Sousa)\
**Post date:** [May 14, 2013, 7:36pm UTC](https://community.gatling.io/t/errors-in-eclipse/383/2 "2013-05-14T19:36:00Z")

</div>

I got past this issue, but now I am getting  
[ERROR] Failed to execute goal com.excilys.ebi.gatling:gatling-maven-plugin:1.3.4:execute (default-cli) on project gatling-maven-project: Gatling failed. Java returned: 1 → [Help 1]  
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.excilys.ebi.gatling:gatling-maven-plugin:1.3.4:execute (default-cli) on project gatling-maven-project: Gatling failed.  
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)  
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)  
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)  
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)  
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)  
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)

---

<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:** [May 14, 2013, 9:19pm UTC](https://community.gatling.io/t/errors-in-eclipse/383/3 "2013-05-14T21:19:14Z")

</div>

Honestly, I have no idea what you’re doing and what happens on your project.

Could you please provide:

- eclipse version
- Scala IDE plugin version (and check that it’s the one for Scala 2.9, not Scala 2.10)
- m2e version
- m2e-scala version  
Stéphane

This set up is plug-and-play, for real!!!

---

<div class="post-metadata">

**Author:** ![Zique\_Sousa](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zique\_Sousa](https://community.gatling.io/u/Zique_Sousa)\
**Post date:** [May 15, 2013, 3:00am UTC](https://community.gatling.io/t/errors-in-eclipse/383/4 "2013-05-15T03:00:51Z")

</div>

honestly, I am having such a hard time just to get a simple test working in eclipse. I know its all me, but I can’t figure it out.

I installed Maven 3.0.5  
I installed eclipse with the Scala IDE  
m2e version 1.3  
m2e-scala version 3.0.0.v-2\_10-201303191346-dac2f1c  
Scala plugin version reads 3.0.0.v-2.10-201…

All I want to do is create a project in eclipse to run my Gatling test.

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [May 15, 2013, 5:37am UTC](https://community.gatling.io/t/errors-in-eclipse/383/5 "2013-05-15T05:37:02Z")

</div>

Hi,

It looks like you’re using an old version of Gatling (1.3.4).  
You should update to 1.5 😉 (open pom.xml, look for gatling.version, change the version and you’re done)  
Looks like you’re using the Scala 2.10 version of Scala IDE, but Gatling 1.X uses Scala 2.9…

Cheers,

Pierre

---

<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:** [May 15, 2013, 7:55am UTC](https://community.gatling.io/t/errors-in-eclipse/383/6 "2013-05-15T07:55:09Z")

</div>

Bull’s eye!

Here’s a procedure, please stick to it!

- Download eclipse Juno (4.2) classic (no need for JEE)

- Help \> Install New Software \> Add =\> install Scala IDE 3.0.0 (with Scala 2.9 for Gatling \< 2, with Scala 2.10 for Gatling \>= 2, if you want to you both, you’ll need 2 separate eclipse installations and workspaces)

- Help \> Install New Software \> Add =\> install everything from scala-m2e (it has the latest m2e too, and no need for maven, it has an embedded version)

- Maven \> Archetypes \> Add Remote Catalog =\> add Excilys catalog

- New \> Other \> Maven \> Maven Project =\> create a new project with gatling archetype

- Run As \> Scala Application =\> Recorder for recording and Engine for simulating

Beware that we don’t support old Gatling versions, upgrade to 1.5.

Like always, eclipse behaves much much better if you use a recent JVM and that you tune it properly in eclipse.ini.  
Here are my options:

-Xmn256m

-Xmx2048m  
-Xss2m  
-XX:MaxPermSize=256m  
-XX:+HeapDumpOnOutOfMemoryError  
-XX:+AggressiveOpts  
-XX:+OptimizeStringConcat  
-XX:+UseFastAccessorMethods  
-XX:+UseParNewGC  
-XX:+UseConcMarkSweepGC  
-XX:+CMSParallelRemarkEnabled  
-XX:SurvivorRatio=8  
-XX:MaxTenuringThreshold=1  
-XX:CMSInitiatingOccupancyFraction=75  
-XX:+UseCMSInitiatingOccupancyOnly  
-XX:+CMSClassUnloadingEnabled

---

<div class="post-metadata">

**Author:** ![Zique\_Sousa](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zique\_Sousa](https://community.gatling.io/u/Zique_Sousa)\
**Post date:** [May 15, 2013, 3:23pm UTC](https://community.gatling.io/t/errors-in-eclipse/383/7 "2013-05-15T15:23:44Z")

</div>

Thank you so much for your help. Both you and Pierre. I finally have this working.
