# Java error when running Engine with Gatling 2.1.1

**URL:** https://community.gatling.io/t/java-error-when-running-engine-with-gatling-2-1-1/1821
**Category:** Gatling (Open-Source)
**Created:** [December 16, 2014, 8:30pm UTC](https://community.gatling.io/t/java-error-when-running-engine-with-gatling-2-1-1/1821 "2014-12-16T20:30:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![fugmag](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@fugmag](https://community.gatling.io/u/fugmag)
#### Post date: [December 16, 2014, 8:30pm UTC](https://community.gatling.io/t/java-error-when-running-engine-with-gatling-2-1-1/1821/1 "2014-12-16T20:30:48Z")

</div>

Now I can rebuild my Gatling project in IntelliJ, but when running engine I get his:

`

Exception in thread “main” java.lang.NoSuchMethodError: scala.Predef$.ArrowAssoc(Ljava/lang/Object;)Ljava/lang/Object;  
at io.gatling.core.config.GatlingPropertiesBuilder.dataDirectory(GatlingPropertiesBuilder.scala:36)  
at Engine$.delayedEndpoint$Engine$1(Engine.scala:7)  
at Engine$delayedInit$body.apply(Engine.scala:4)  
at scala.Function0$class.apply$mcV$sp(Function0.scala:40)  
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)  
at scala.App$$anonfun$main$1.apply(App.scala:71)  
at scala.App$$anonfun$main$1.apply(App.scala:71)  
at scala.collection.immutable.List.foreach(List.scala:318)  
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)  
at scala.App$class.main(App.scala:71)  
at Engine$.main(Engine.scala:4)

`

Any ideas what to do?

Cheers

---

<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: [December 16, 2014, 8:43pm UTC](https://community.gatling.io/t/java-error-when-running-engine-with-gatling-2-1-1/1821/2 "2014-12-16T20:43:25Z")

</div>

You’re somehow mixing Scala 2.10 and Scala 2.11 binaries : Clean your project, rebuild it, it should work

---

<div class="post-metadata">

### Author: ![fugmag](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@fugmag](https://community.gatling.io/u/fugmag)
#### Post date: [December 16, 2014, 8:48pm UTC](https://community.gatling.io/t/java-error-when-running-engine-with-gatling-2-1-1/1821/3 "2014-12-16T20:48:59Z")

</div>

Ok,  
But when running mvn clean install from terminal I get:

[ERROR] Failed to execute goal on project gatling: Could not resolve dependencies for project xxx.yyy.zzz:gatling:jar:1.0-SNAPSHOT: Failure to find org.scala-lang:scala-library:jar:2.11 in [http://repository.excilys.com/content/groups/public](http://repository.excilys.com/content/groups/public) was cached in the local repository, resolution will not be reattempted until the update interval of excilys has elapsed or updates are forced → [Help 1]

---

<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: [December 16, 2014, 8:51pm UTC](https://community.gatling.io/t/java-error-when-running-engine-with-gatling-2-1-1/1821/4 "2014-12-16T20:51:23Z")

</div>

Do you realise that it’s EXACTLY the same problem you had in another thread ?  
Double check your pom.xml, you must have forgotten something.

---

<div class="post-metadata">

### Author: ![fugmag](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@fugmag](https://community.gatling.io/u/fugmag)
#### Post date: [December 16, 2014, 8:56pm UTC](https://community.gatling.io/t/java-error-when-running-engine-with-gatling-2-1-1/1821/5 "2014-12-16T20:56:14Z")

</div>

Right, I just red the other thread. I had two scala-sdk in my global libraries in IntelliJ.  
My bad.  
Thanks for all the help.  
I am now up and running on 2.1.1.  
Great,  
Cheers
