# Running elasticsearch from Intellij IDEA

**URL:** https://discuss.elastic.co/t/running-elasticsearch-from-intellij-idea/32070
**Category:** Elasticsearch
**Created:** [October 13, 2015, 8:54am UTC](https://discuss.elastic.co/t/running-elasticsearch-from-intellij-idea/32070 "2015-10-13T08:54:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![cterron](https://avatars.discourse-cdn.com/v4/letter/c/ccd318/32.png) [@cterron](https://discuss.elastic.co/u/cterron)
#### Post date: [October 13, 2015, 8:54am UTC](https://discuss.elastic.co/t/running-elasticsearch-from-intellij-idea/32070/1 "2015-10-13T08:54:52Z")

</div>

I'm trying to learn about Elasticsearch internals. I have imported the code from github in idea using the pom.xml. After reading the elastichsearch start script and the elasticsearch.in.sh file. After see it, I understand that those scripts pass the next parameters to java to start ES:

The locale must be en\_US.UTF-8

> LANG=en\_US.UTF-8 LC\_ALL=en\_US.UTF-8

Those parameters must be passed to java

> -Des.path.home=/data/store/elastic -Delasticsearch -Des.pidfile=/data/store/elastic/run/elastic.pid -Dfile.encoding=UTF-8 -Xms2G -Xmx2G -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+DisableExplicitGC

We need to pass more java configuration? Are there any document I can use to read what parameters I need to pass?

---

<div class="post-metadata">

### Author: ![andrely](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@andrely](https://discuss.elastic.co/u/andrely)
#### Post date: [October 14, 2015, 1:01pm UTC](https://discuss.elastic.co/t/running-elasticsearch-from-intellij-idea/32070/2 "2015-10-14T13:01:10Z")

</div>

You should be able to run the main function in org.elasticsearch.bootstrap.ElasticsearchF without any extra setup to get started.

---

<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:44pm UTC](https://discuss.elastic.co/t/running-elasticsearch-from-intellij-idea/32070/3 "2017-07-05T23:44:53Z")

</div>


