# Elasticsearch Engineer 1 - Lab 1.4 - can not find Java

**URL:** https://discuss.elastic.co/t/elasticsearch-engineer-1-lab-1-4-can-not-find-java/251797
**Category:** Elastic Training
**Created:** [October 12, 2020, 5:22pm UTC](https://discuss.elastic.co/t/elasticsearch-engineer-1-lab-1-4-can-not-find-java/251797 "2020-10-12T17:22:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![justing](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@justing](https://discuss.elastic.co/u/justing)
#### Post date: [October 12, 2020, 5:22pm UTC](https://discuss.elastic.co/t/elasticsearch-engineer-1-lab-1-4-can-not-find-java/251797/1 "2020-10-12T17:22:06Z")

</div>

I’m currently attempting to take ElasticSearch Engineer 1 (On-Demand) training and am stuck at Lab 1.4 in the Lab Environment (Strigo). When attempting to run the logstash command, I get the following error:

```auto
[elastic@server1 ~]$ ./logstash-7.8.0/bin/logstash -f datasets/blogs_sql.conf
could not find java; set JAVA_HOME or ensure java is in PATH

```

I found a JDK dir in the elasticsearch directory, but when I tried to set the PATH to point to it, the environment sort of blew up (logstash still fails and many default unix commands disappear). I subsequently attempted to install the Java JDK on the machine, but we don’t have sudo access.

I've also attempted to restart the VM. Is this something you all can help me out with?

---

<div class="post-metadata">

### Author: ![Romain\_Geffraye](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/romain_geffraye/32/77053_2.png) [@Romain\_Geffraye](https://discuss.elastic.co/u/Romain_Geffraye)
#### Post date: [October 12, 2020, 6:05pm UTC](https://discuss.elastic.co/t/elasticsearch-engineer-1-lab-1-4-can-not-find-java/251797/2 "2020-10-12T18:05:49Z")

</div>

Hello Justin,

Please make sure that you loaded the correct lab environment by running the command `./load_lab.sh 1`

If this doesn't fix your issue, please send me a private message with your email address so that I can reboot your environment.

---

<div class="post-metadata">

### Author: ![justing](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@justing](https://discuss.elastic.co/u/justing)
#### Post date: [October 15, 2020, 8:53pm UTC](https://discuss.elastic.co/t/elasticsearch-engineer-1-lab-1-4-can-not-find-java/251797/3 "2020-10-15T20:53:01Z")

</div>

Thanks! That did the trick 🙂 I think I had loaded "lab 4" (or something) when Lab 1 covers 1.1-1.4.

---

<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: [November 14, 2020, 8:53pm UTC](https://discuss.elastic.co/t/elasticsearch-engineer-1-lab-1-4-can-not-find-java/251797/4 "2020-11-14T20:53:06Z")

</div>

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