# This behavior is deprecated. Specify JAVA\_HOME

**URL:** https://discuss.elastic.co/t/this-behavior-is-deprecated-specify-java-home/268544
**Category:** Elasticsearch
**Created:** [March 26, 2021, 11:19pm UTC](https://discuss.elastic.co/t/this-behavior-is-deprecated-specify-java-home/268544 "2021-03-26T23:19:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jtvdw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jtvdw/32/86184_2.png) [@jtvdw](https://discuss.elastic.co/u/jtvdw)
#### Post date: [March 26, 2021, 11:19pm UTC](https://discuss.elastic.co/t/this-behavior-is-deprecated-specify-java-home/268544/1 "2021-03-26T23:19:00Z")

</div>

Hi,

I ran into a error when I installed the latest version of ActiveCollab, it makes use of ES6 and not ES7, not sure why, I had ES7 installed but ActiveCollab confirmed I need to use ES6 for it to work.

Here is the error:

```auto
 elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2021-03-26 23:01:41 UTC; 3s ago
     Docs: http://www.elastic.co
  Process: 2205 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
 Main PID: 2205 (code=exited, status=1/FAILURE)

Mar 26 23:01:37 LiqActiveCollab systemd[1]: Started Elasticsearch.
Mar 26 23:01:37 LiqActiveCollab elasticsearch[2205]: warning: Falling back to java on path. This behavior is deprecated. Specify JAVA_HOME

```

I've followed some if the previous posts but wasn't successful, maybe I'm missing something somewhere.

I specified the JAVA\_HOME directory but ES starts but immediately fails ☹

Any help would be appreciated.

Thanks.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [March 29, 2021, 12:09am UTC](https://discuss.elastic.co/t/this-behavior-is-deprecated-specify-java-home/268544/2 "2021-03-29T00:09:46Z")

</div>

Welcome to our community! 😃

Can you please check the Elasticsearch logs, there will be more there.

---

<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: [April 26, 2021, 12:10am UTC](https://discuss.elastic.co/t/this-behavior-is-deprecated-specify-java-home/268544/3 "2021-04-26T00:10:26Z")

</div>

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