# Getting an error when starting ES

**URL:** <https://discuss.elastic.co/t/getting-an-error-when-starting-es/49338>\
**Category:** Elasticsearch\
**Created:** [May 5, 2016, 7:29pm UTC](https://discuss.elastic.co/t/getting-an-error-when-starting-es/49338 "2016-05-05T19:29:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![armish](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@armish](https://discuss.elastic.co/u/armish)\
**Post date:** [May 5, 2016, 7:29pm UTC](https://discuss.elastic.co/t/getting-an-error-when-starting-es/49338/1 "2016-05-05T19:29:27Z")

</div>

Error: Could not find or load main class org.elasticsearch.bootstrap.Elasticsearch

System: Redhat  
Java: 1.8  
ES: 2.3.2  
JAVA\_HOME & PATH set correctly  
Command: /bin/elasticsearch -d

---

<div class="post-metadata">

**Author:** ![geekpete](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/geekpete/32/20409_2.png) [@geekpete](https://discuss.elastic.co/u/geekpete)\
**Post date:** [May 6, 2016, 1:48am UTC](https://discuss.elastic.co/t/getting-an-error-when-starting-es/49338/2 "2016-05-06T01:48:17Z")

</div>

Hi,

What methdo have you used to install Elasticsearch?

---

<div class="post-metadata">

**Author:** ![xueling794](https://avatars.discourse-cdn.com/v4/letter/x/a698b9/32.png) [@xueling794](https://discuss.elastic.co/u/xueling794)\
**Post date:** [May 2, 2017, 5:39am UTC](https://discuss.elastic.co/t/getting-an-error-when-starting-es/49338/3 "2017-05-02T05:39:37Z")

</div>

Hi ,

I did some operation:  
wget [https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.2.tar.gz](https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.2.tar.gz)  
tar -zxvf elasticsearch-5.2.2.tar.gz  
cd ./es/bin/  
./elasticsearch  
then i got the message  
Error: Could not find or load main class org.elasticsearch.bootstrap.Elasticsearch

My java version :  
java -version  
openjdk version "1.8.0\_131"  
OpenJDK Runtime Environment (build 1.8.0\_131-b11)  
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)

---

<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:00pm UTC](https://discuss.elastic.co/t/getting-an-error-when-starting-es/49338/4 "2017-07-05T22:00:46Z")

</div>


