# Pass jvm args to runtime configuration

**URL:** <https://discuss.gradle.org/t/pass-jvm-args-to-runtime-configuration/33755>\
**Category:** Help/Discuss\
**Created:** [November 5, 2019, 12:30pm UTC](https://discuss.gradle.org/t/pass-jvm-args-to-runtime-configuration/33755 "2019-11-05T12:30:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![QuasiG](https://avatars.discourse-cdn.com/v4/letter/q/ed8c4c/32.png) [@QuasiG](https://discuss.gradle.org/u/QuasiG)\
**Post date:** [November 5, 2019, 12:30pm UTC](https://discuss.gradle.org/t/pass-jvm-args-to-runtime-configuration/33755/1 "2019-11-05T12:30:02Z")

</div>

I’m using Gradle 4.10 with java 8.  
I need to pass in native dll files when I run my application.  
I have used this for my unit tests configuration which works perfectly when I execute the test task

```
tasks.withType(Test) {
     jvmArgs '-Djava.library.path=[path]
} 

```

`  
I now want to setup a similar configuration for runtime when I run the application through my IDE. I know I can add the jvm args to my IDE runtime configuration but preferably I want this in the gradle file so each member of the dev team does not have to specify this in their IDE runtime configuration.

---

<div class="post-metadata">

**Author:** ![QuasiG](https://avatars.discourse-cdn.com/v4/letter/q/ed8c4c/32.png) [@QuasiG](https://discuss.gradle.org/u/QuasiG)\
**Post date:** [November 6, 2019, 6:08pm UTC](https://discuss.gradle.org/t/pass-jvm-args-to-runtime-configuration/33755/2 "2019-11-06T18:08:59Z")

</div>

Can anyone help with this please?
