# Building elasticsearch source code

**URL:** <https://discuss.elastic.co/t/building-elasticsearch-source-code/207540>\
**Category:** Elasticsearch\
**Created:** [November 12, 2019, 2:11pm UTC](https://discuss.elastic.co/t/building-elasticsearch-source-code/207540 "2019-11-12T14:11:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mamadly](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@mamadly](https://discuss.elastic.co/u/mamadly)\
**Post date:** [November 12, 2019, 2:11pm UTC](https://discuss.elastic.co/t/building-elasticsearch-source-code/207540/1 "2019-11-12T14:11:38Z")

</div>

Hi,

This is my first time trying to build elasticsearch source code. Wiki is saying that at least java12 is require to build source code. I am running ubuntu 18.04. From the google that I have done it doesn't seem that java12 exist for ubuntu 18.04. What I see from the oracle page is java8, java11 and java13. Tried to be build source code with java13 but it doesn't seem to work.

I was wondering if someone know a workaround that I can use, I don't want to install ubuntu19 just to have java12

Thanks

---

<div class="post-metadata">

**Author:** ![cufflinks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cufflinks/32/42129_2.png) [@cufflinks](https://discuss.elastic.co/u/cufflinks)\
**Post date:** [November 13, 2019, 7:02am UTC](https://discuss.elastic.co/t/building-elasticsearch-source-code/207540/2 "2019-11-13T07:02:42Z")

</div>

Hi Mamadly,

I came across this link as to how to install Java 12 on Ubuntu 18.04. I remember doing this as well on a VPS that I have so it is possible. Let me know if you have any questions.

> **[How to Install Java/JDK 12 on Ubuntu 18.04 | Edureka](https://www.edureka.co/blog/how-to-install-java-on-ubuntu/)**
>
> This Edureka blog is a step by step guide to install Java 12 on Ubuntu 18.04 using java tarball or java deb package from oracle repository.

---

<div class="post-metadata">

**Author:** ![mamadly](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@mamadly](https://discuss.elastic.co/u/mamadly)\
**Post date:** [November 13, 2019, 2:34pm UTC](https://discuss.elastic.co/t/building-elasticsearch-source-code/207540/3 "2019-11-13T14:34:53Z")

</div>

Hi Cufflinks,

Thanks for the reply and suggestion. I went through the blog. But the issue I am facing is that java12 doesn't seem to be the oracle page anymore I believe it has been remove some time on April.

[https://www.oracle.com/technetwork/java/javase/downloads/index.html](https://www.oracle.com/technetwork/java/javase/downloads/index.html)

Best,

---

<div class="post-metadata">

**Author:** ![mamadly](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@mamadly](https://discuss.elastic.co/u/mamadly)\
**Post date:** [November 13, 2019, 3:40pm UTC](https://discuss.elastic.co/t/building-elasticsearch-source-code/207540/4 "2019-11-13T15:40:12Z")

</div>

Hi Cufflinks,

Was able to successfully download it. I found it through java Archive page

Many thanks

---

<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:** [December 11, 2019, 3:40pm UTC](https://discuss.elastic.co/t/building-elasticsearch-source-code/207540/5 "2019-12-11T15:40:13Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
