# error on Gatling compilation

**URL:** <https://community.gatling.io/t/error-on-gatling-compilation/2782>\
**Category:** Gatling (Open-Source)\
**Created:** [January 22, 2016, 1:39pm UTC](https://community.gatling.io/t/error-on-gatling-compilation/2782 "2016-01-22T13:39:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SR1](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@SR1](https://community.gatling.io/u/SR1)\
**Post date:** [January 22, 2016, 1:39pm UTC](https://community.gatling.io/t/error-on-gatling-compilation/2782/1 "2016-01-22T13:39:21Z")

</div>

I am trying to setup Gatling in my test machine and getting the following error.

C:\Code\>CareID\_Devops\Performance\Gatling\run.bat gatling-charts-highcharts-2.1.3  
C:\Code\>set gatlingScriptsPath=C:\Code\CareID\_Devops\Performance\Gatling  
C:\Code\>set GATLING\_HOME=gatling-charts-highcharts-2.1.3  
C:\Code\>set JAVA\_OPTS=-Denv= -Dusers= -DrampUp= -Dduration= -Dpwd=C:\Code\CareID\_Devops\Performance\Gatling  
C:\Code\>if “” == “” (gatling-charts-highcharts-2.1.3\bin\gatling.bat -sf C:\Code\CareID\_Devops\Performance\Gatling\simulations -df C:\Code\CareID\_Devops\Performance\Gatling\data -bdf C:\Co  
GATLING\_HOME is set to “gatling-charts-highcharts-2.1.3”  
Unrecognized VM option ‘OptimizeStringConcat’  
Error: Could not create the Java Virtual Machine.  
Error: A fatal exception has occurred. Program will exit.

I am using Windows 7 32 bit machine.

Java version is -

C:\Code\gatling-charts-highcharts-2.1.3\bin\>java -version  
java version “1.8.0\_72”  
Java™ SE Runtime Environment (build 1.8.0\_72-b15)  
Java HotSpot™ Client VM (build 25.72-b15, mixed mode, sharing)

Could you please help me.

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [January 25, 2016, 11:04am UTC](https://community.gatling.io/t/error-on-gatling-compilation/2782/2 "2016-01-25T11:04:50Z")

</div>

You run on a 32bits Windows where Oracle doesn’t provide a server JVM.  
You probably already more or less figured it out as you most likely removed the “-server” option from the JAVA\_OPTS in gatling.bat.

The “OptimizeStringConcat” JVM option is only available on server JVM, so you have to remove it too.
