# No jvm.options after having installed JRE 8 and Elasticsearch 7.3.1

**URL:** https://discuss.elastic.co/t/no-jvm-options-after-having-installed-jre-8-and-elasticsearch-7-3-1/195939
**Category:** Elasticsearch
**Created:** [August 20, 2019, 1:16pm UTC](https://discuss.elastic.co/t/no-jvm-options-after-having-installed-jre-8-and-elasticsearch-7-3-1/195939 "2019-08-20T13:16:30Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![scarabas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scarabas/32/39356_2.png) [@scarabas](https://discuss.elastic.co/u/scarabas)
#### Post date: [August 20, 2019, 1:16pm UTC](https://discuss.elastic.co/t/no-jvm-options-after-having-installed-jre-8-and-elasticsearch-7-3-1/195939/1 "2019-08-20T13:16:30Z")

</div>

I have just installed JRE by using `apt-get install default-jre`

I then installed Elasticsearch by using `apt-get install elasticsearch`

Now, I have to edit the jvm.options file, which should reside under **/etc/elasticsearch/** , but it's not there. I also tried a `find` on jvm.options, to no avail.

What am I missing?

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [August 20, 2019, 1:49pm UTC](https://discuss.elastic.co/t/no-jvm-options-after-having-installed-jre-8-and-elasticsearch-7-3-1/195939/2 "2019-08-20T13:49:20Z")

</div>

hey,

first, you might want to install a jdk instead of a JRE. However the file you are missing is part of the elasticsearch package. Are you using the official elastic repositories mentioned at [https://www.elastic.co/guide/en/elasticsearch/reference/7.3/deb.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/deb.html) ?

Can you share the output of `dpkg -L elasticsearch` in a gist somewhere? Also `dpkg -l elasticsearch` for completeness.

Thanks!

---

<div class="post-metadata">

### Author: ![scarabas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scarabas/32/39356_2.png) [@scarabas](https://discuss.elastic.co/u/scarabas)
#### Post date: [August 20, 2019, 2:05pm UTC](https://discuss.elastic.co/t/no-jvm-options-after-having-installed-jre-8-and-elasticsearch-7-3-1/195939/3 "2019-08-20T14:05:11Z")

</div>

Hey!

Here you go: [https://justpaste.it/6bocj](https://justpaste.it/6bocj)

I installed Elasticsearch with `apt-get install elasticsearch`, so I'd expect it to be sort of official; but maybe that's the problem 🙂

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [August 20, 2019, 2:07pm UTC](https://discuss.elastic.co/t/no-jvm-options-after-having-installed-jre-8-and-elasticsearch-7-3-1/195939/4 "2019-08-20T14:07:10Z")

</div>

Hey,

ok, here goes the issue. the `dpkg -l` (with a lowercase L) shows that you are trying to install a **very old** version of Elasticsearch, that has been unsupported for several years - and also does not contain that `jvm.options` file yet. Uninstall that one, and follow the steps in the link above to get a new and fresh one.

--Alex

---

<div class="post-metadata">

### Author: ![scarabas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scarabas/32/39356_2.png) [@scarabas](https://discuss.elastic.co/u/scarabas)
#### Post date: [August 20, 2019, 2:10pm UTC](https://discuss.elastic.co/t/no-jvm-options-after-having-installed-jre-8-and-elasticsearch-7-3-1/195939/5 "2019-08-20T14:10:09Z")

</div>

Ah thanks, makes sense! Note to self, **don't use the apt-get package**!

Have a great day Spinscale.

---

<div class="post-metadata">

### Author: ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)
#### Post date: [August 20, 2019, 5:20pm UTC](https://discuss.elastic.co/t/no-jvm-options-after-having-installed-jre-8-and-elasticsearch-7-3-1/195939/6 "2019-08-20T17:20:11Z")

</div>

Using `apt-get` is fine, but you need to use the official apt repository (noted in the link Alex provided earlier), which is changed every major version:

> echo "deb [https://artifacts.elastic.co/packages/7.x/apt](https://artifacts.elastic.co/packages/7.x/apt) stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list

---

<div class="post-metadata">

### Author: ![scarabas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scarabas/32/39356_2.png) [@scarabas](https://discuss.elastic.co/u/scarabas)
#### Post date: [August 21, 2019, 7:07am UTC](https://discuss.elastic.co/t/no-jvm-options-after-having-installed-jre-8-and-elasticsearch-7-3-1/195939/7 "2019-08-21T07:07:56Z")

</div>

Thanks Ryan - I'll try that in stead then 👍

---

<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: [September 18, 2019, 7:08am UTC](https://discuss.elastic.co/t/no-jvm-options-after-having-installed-jre-8-and-elasticsearch-7-3-1/195939/8 "2019-09-18T07:08:06Z")

</div>

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