# Add -D Java System Property Getting Null

**URL:** <https://discuss.elastic.co/t/add-d-java-system-property-getting-null/37216>\
**Category:** Elasticsearch\
**Created:** [December 15, 2015, 9:09am UTC](https://discuss.elastic.co/t/add-d-java-system-property-getting-null/37216 "2015-12-15T09:09:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aditya.lukman](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@aditya.lukman](https://discuss.elastic.co/u/aditya.lukman)\
**Post date:** [December 15, 2015, 9:09am UTC](https://discuss.elastic.co/t/add-d-java-system-property-getting-null/37216/1 "2015-12-15T09:09:03Z")

</div>

Hello

I am still migration from es 1.3.2 to es 2.1.0

but, i got problem

when running ./elasticsearch in terminal, i am adding -Dread.config paramteter

but when i called in code System.getProperty in java code,  
the value of this is null

in elasticsearch 1.3.2, this code is working well

note : I am create elasticsearch plugin for search query, -Dread.config used for limiting specific index of result query

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:31pm UTC](https://discuss.elastic.co/t/add-d-java-system-property-getting-null/37216/2 "2017-07-05T23:31:01Z")

</div>

Closed on July 5, 2017, 11:31pm UTC


