# JAVA\_OPTS is not correct

**URL:** <https://community.gatling.io/t/java-opts-is-not-correct/2745>\
**Category:** Gatling (Open-Source)\
**Created:** [December 29, 2015, 1:08pm UTC](https://community.gatling.io/t/java-opts-is-not-correct/2745 "2015-12-29T13:08:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey\_Piskunov](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@Sergey\_Piskunov](https://community.gatling.io/u/Sergey_Piskunov)\
**Post date:** [December 29, 2015, 1:08pm UTC](https://community.gatling.io/t/java-opts-is-not-correct/2745/1 "2015-12-29T13:08:57Z")

</div>

```auto
**Hi everyone.**

```

```auto
**Could someone help, please?**

```

```auto
**I want to get "number =of users" from command line (Windows)**

```

```auto
**>gatling.bat JAVA_OPTS="-Dusers=5"**

```

```auto

```

```auto
And I Have a problem: Unknown argument 'JAVA_OPTS=-Dusers=5'

```

```auto
I have gatling 2.1.7

```

```auto

```

---

<div class="post-metadata">

**Author:** ![jarrowwx](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@jarrowwx](https://community.gatling.io/u/jarrowwx)\
**Post date:** [February 2, 2016, 8:31pm UTC](https://community.gatling.io/t/java-opts-is-not-correct/2745/2 "2016-02-02T20:31:55Z")

</div>

This is a windows question, not a Gatling question. Since I don’t use Windows, I can’t answer it, definitively. But to give you a clue so you can research it yourself, the part that says “JAVA\_OPTS=” is intended to set an environment variable. Now, Google how to set an environment variable in Windows from the Command-Line.
