# Compile and Run from source

**URL:** <https://discuss.elastic.co/t/compile-and-run-from-source/44868>\
**Category:** Elasticsearch\
**Created:** [March 18, 2016, 8:59pm UTC](https://discuss.elastic.co/t/compile-and-run-from-source/44868 "2016-03-18T20:59:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaxoncreed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaxoncreed/32/8557_2.png) [@jaxoncreed](https://discuss.elastic.co/u/jaxoncreed)\
**Post date:** [March 18, 2016, 8:59pm UTC](https://discuss.elastic.co/t/compile-and-run-from-source/44868/1 "2016-03-18T20:59:45Z")

</div>

Hi, I'm having trouble compiling and running ElasticSearch from source. I've cloned the repo and tried the following things with no avail:

- [https://github.com/elastic/elasticsearch](https://github.com/elastic/elasticsearch) - I ran "gradle build," but target folder wasn’t created

- [https://github.com/elastic/elasticsearch/blob/master/CONTRIBUTING.md](https://github.com/elastic/elasticsearch/blob/master/CONTRIBUTING.md) - ran grade assemble, but the distributions folder wasn’t generated.

- [https://groups.google.com/forum/#!topic/elasticsearch/Zovdk0x6r8A](https://groups.google.com/forum/#!topic/elasticsearch/Zovdk0x6r8A) - configured Intellij as requested, but none of the class path modules will produce a result that doesn’t error.

Thanks

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [March 18, 2016, 10:07pm UTC](https://discuss.elastic.co/t/compile-and-run-from-source/44868/2 "2016-03-18T22:07:01Z")

</div>

`gradle run` is the quickest way to get **something** running.

`gradle assemble` makes `distribution/zip/build/distribution/elasticsearch-5.0.0-SNAPSHOT.zip`. We could certainly use better docs for this....

---

<div class="post-metadata">

**Author:** ![talk2cshah](https://avatars.discourse-cdn.com/v4/letter/t/8e7dd6/32.png) [@talk2cshah](https://discuss.elastic.co/u/talk2cshah)\
**Post date:** [October 4, 2016, 9:38am UTC](https://discuss.elastic.co/t/compile-and-run-from-source/44868/3 "2016-10-04T09:38:23Z")

</div>

Hi,

Any update on docs you mentioned ? or links to some articles would help.  
facing issues with compilation of source code...

Regards,

---

<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, 10:15pm UTC](https://discuss.elastic.co/t/compile-and-run-from-source/44868/4 "2017-07-05T22:15:14Z")

</div>


