# Elasticsearch Startup issues

**URL:** <https://discuss.elastic.co/t/elasticsearch-startup-issues/16303>\
**Category:** Elasticsearch\
**Created:** [March 11, 2014, 10:38pm UTC](https://discuss.elastic.co/t/elasticsearch-startup-issues/16303 "2014-03-11T22:38:07Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![P\_lva](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@P\_lva](https://discuss.elastic.co/u/P_lva)\
**Post date:** [March 11, 2014, 10:38pm UTC](https://discuss.elastic.co/t/elasticsearch-startup-issues/16303/1 "2014-03-11T22:38:07Z")

</div>

I get this error at elasticsearch startup

Exception in thread "main" java.lang.NoClassDefFoundError:  
org.apache.lucene.util.Version  
at org.elasticsearch.Version.(Version.java:42)  
at java.lang.Class.initializeClass(libgcj.so.10)  
at  
org.elasticsearch.bootstrap.Bootstrap.buildErrorMessage(Bootstrap.java:252)  
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:178)  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)

The jar containing this class is present in the lib directory and echo  
$ES\_CLASSPATH shows this jar.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [March 12, 2014, 10:20am UTC](https://discuss.elastic.co/t/elasticsearch-startup-issues/16303/2 "2014-03-12T10:20:56Z")

</div>

Hey,

can you be more verbose, how you are actually starting elasticsearch, which  
version you are using, what operating system you are running on, which java  
version you are running, what is your default shell? Did you modify  
anything from the standard installation?  
Thanks.

--Alex

On Tue, Mar 11, 2014 at 11:38 PM, P lva [ruvikal@gmail.com](mailto:ruvikal@gmail.com) wrote:

> I get this error at elasticsearch startup
> 
> Exception in thread "main" java.lang.NoClassDefFoundError:  
> org.apache.lucene.util.Version  
> at org.elasticsearch.Version.(Version.java:42)  
> at java.lang.Class.initializeClass(libgcj.so.10)  
> at  
> org.elasticsearch.bootstrap.Bootstrap.buildErrorMessage(Bootstrap.java:252)  
> at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:178)  
> at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)
> 
> The jar containing this class is present in the lib directory and echo  
> $ES\_CLASSPATH shows this jar.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM\_K6\_mpR5ZgB0Xk8V-TCKCwQj7%2BVKVRYNmVAgCxbOyb%3DA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM_K6_mpR5ZgB0Xk8V-TCKCwQj7%2BVKVRYNmVAgCxbOyb%3DA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![P\_lva](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@P\_lva](https://discuss.elastic.co/u/P_lva)\
**Post date:** [March 12, 2014, 5:37pm UTC](https://discuss.elastic.co/t/elasticsearch-startup-issues/16303/3 "2014-03-12T17:37:07Z")

</div>

Apart from cluster name and node name I didnt change anything.  
Version 1.0.1  
Commands I use to start bin/elasticsearch

On Wednesday, March 12, 2014 5:20:56 AM UTC-5, Alexander Reelsen wrote:

> Hey,
> 
> can you be more verbose, how you are actually starting elasticsearch,  
> which version you are using, what operating system you are running on,  
> which java version you are running, what is your default shell? Did you  
> modify anything from the standard installation?  
> Thanks.
> 
> --Alex
> 
> On Tue, Mar 11, 2014 at 11:38 PM, P lva \<[ruv...@gmail.com](mailto:ruv...@gmail.com) \<javascript:\>\>wrote:
> 
> > I get this error at elasticsearch startup
> > 
> > Exception in thread "main" java.lang.NoClassDefFoundError:  
> > org.apache.lucene.util.Version  
> > at org.elasticsearch.Version.(Version.java:42)  
> > at java.lang.Class.initializeClass(libgcj.so.10)  
> > at  
> > org.elasticsearch.bootstrap.Bootstrap.buildErrorMessage(Bootstrap.java:252)  
> > at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:178)  
> > at  
> > org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)
> > 
> > The jar containing this class is present in the lib directory and echo  
> > $ES\_CLASSPATH shows this jar.
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b489cd4a-cb33-45f6-9ff5-fb99dd4429eb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b489cd4a-cb33-45f6-9ff5-fb99dd4429eb%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![P\_lva](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@P\_lva](https://discuss.elastic.co/u/P_lva)\
**Post date:** [March 12, 2014, 7:12pm UTC](https://discuss.elastic.co/t/elasticsearch-startup-issues/16303/4 "2014-03-12T19:12:12Z")

</div>

I have  
RHEL 6.  
Java 1.7  
default shell is bash.  
I tried it on a server, it worked fine right out of the box, but when I  
moved to the actual set of servers it failed.  
Its got something to do with environment for sure, but I can't figure out  
what.

On Wednesday, March 12, 2014 5:20:56 AM UTC-5, Alexander Reelsen wrote:

> Hey,
> 
> can you be more verbose, how you are actually starting elasticsearch,  
> which version you are using, what operating system you are running on,  
> which java version you are running, what is your default shell? Did you  
> modify anything from the standard installation?  
> Thanks.
> 
> --Alex
> 
> On Tue, Mar 11, 2014 at 11:38 PM, P lva \<[ruv...@gmail.com](mailto:ruv...@gmail.com) \<javascript:\>\>wrote:
> 
> > I get this error at elasticsearch startup
> > 
> > Exception in thread "main" java.lang.NoClassDefFoundError:  
> > org.apache.lucene.util.Version  
> > at org.elasticsearch.Version.(Version.java:42)  
> > at java.lang.Class.initializeClass(libgcj.so.10)  
> > at  
> > org.elasticsearch.bootstrap.Bootstrap.buildErrorMessage(Bootstrap.java:252)  
> > at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:178)  
> > at  
> > org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)
> > 
> > The jar containing this class is present in the lib directory and echo  
> > $ES\_CLASSPATH shows this jar.
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [March 12, 2014, 7:19pm UTC](https://discuss.elastic.co/t/elasticsearch-startup-issues/16303/5 "2014-03-12T19:19:58Z")

</div>

How do you start Elasticsearch, by

$ cd $ES\_HOME  
$ ./bin/elasticsearch

or

$ cd $ES\_HOME/bin  
$ ./elasticsearch

or

...

?

Jörg

On Wed, Mar 12, 2014 at 8:12 PM, P lva [ruvikal@gmail.com](mailto:ruvikal@gmail.com) wrote:

> I have  
> RHEL 6.  
> Java 1.7  
> default shell is bash.  
> I tried it on a server, it worked fine right out of the box, but when I  
> moved to the actual set of servers it failed.  
> Its got something to do with environment for sure, but I can't figure out  
> what.
> 
> On Wednesday, March 12, 2014 5:20:56 AM UTC-5, Alexander Reelsen wrote:
> 
> > Hey,
> > 
> > can you be more verbose, how you are actually starting elasticsearch,  
> > which version you are using, what operating system you are running on,  
> > which java version you are running, what is your default shell? Did you  
> > modify anything from the standard installation?  
> > Thanks.
> > 
> > --Alex
> > 
> > On Tue, Mar 11, 2014 at 11:38 PM, P lva [ruv...@gmail.com](mailto:ruv...@gmail.com) wrote:
> > 
> > > I get this error at elasticsearch startup
> > > 
> > > Exception in thread "main" java.lang.NoClassDefFoundError:  
> > > org.apache.lucene.util.Version  
> > > at org.elasticsearch.Version.(Version.java:42)  
> > > at java.lang.Class.initializeClass(libgcj.so.10)  
> > > at org.elasticsearch.bootstrap.Bootstrap.buildErrorMessage(  
> > > Bootstrap.java:252)  
> > > at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:178)  
> > > at org.elasticsearch.bootstrap.Elasticsearch.main(  
> > > Elasticsearch.java:32)
> > > 
> > > The jar containing this class is present in the lib directory and echo  
> > > $ES\_CLASSPATH shows this jar.
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).
> > > 
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%  
> > > [40googlegroups.com](http://40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFCw0KAWTSd7L3gwrYPiwUXEaS%2B0RGH\_0oAyRYeP5GYWw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFCw0KAWTSd7L3gwrYPiwUXEaS%2B0RGH_0oAyRYeP5GYWw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [March 12, 2014, 7:21pm UTC](https://discuss.elastic.co/t/elasticsearch-startup-issues/16303/6 "2014-03-12T19:21:41Z")

</div>

And do you start Elasticsearch by the same user you installed Elasticsearch  
under?

Jörg

On Wed, Mar 12, 2014 at 8:19 PM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
[joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:

> How do you start Elasticsearch, by
> 
> $ cd $ES\_HOME  
> $ ./bin/elasticsearch
> 
> or
> 
> $ cd $ES\_HOME/bin  
> $ ./elasticsearch
> 
> or
> 
> ...
> 
> ?
> 
> Jörg
> 
> On Wed, Mar 12, 2014 at 8:12 PM, P lva [ruvikal@gmail.com](mailto:ruvikal@gmail.com) wrote:
> 
> > I have  
> > RHEL 6.  
> > Java 1.7  
> > default shell is bash.  
> > I tried it on a server, it worked fine right out of the box, but when I  
> > moved to the actual set of servers it failed.  
> > Its got something to do with environment for sure, but I can't figure out  
> > what.
> > 
> > On Wednesday, March 12, 2014 5:20:56 AM UTC-5, Alexander Reelsen wrote:
> > 
> > > Hey,
> > > 
> > > can you be more verbose, how you are actually starting elasticsearch,  
> > > which version you are using, what operating system you are running on,  
> > > which java version you are running, what is your default shell? Did you  
> > > modify anything from the standard installation?  
> > > Thanks.
> > > 
> > > --Alex
> > > 
> > > On Tue, Mar 11, 2014 at 11:38 PM, P lva [ruv...@gmail.com](mailto:ruv...@gmail.com) wrote:
> > > 
> > > > I get this error at elasticsearch startup
> > > > 
> > > > Exception in thread "main" java.lang.NoClassDefFoundError:  
> > > > org.apache.lucene.util.Version  
> > > > at org.elasticsearch.Version.(Version.java:42)  
> > > > at java.lang.Class.initializeClass(libgcj.so.10)  
> > > > at org.elasticsearch.bootstrap.Bootstrap.buildErrorMessage(  
> > > > Bootstrap.java:252)  
> > > > at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:178)  
> > > > at org.elasticsearch.bootstrap.Elasticsearch.main(  
> > > > Elasticsearch.java:32)
> > > > 
> > > > The jar containing this class is present in the lib directory and echo  
> > > > $ES\_CLASSPATH shows this jar.
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).
> > > > 
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%  
> > > > [40googlegroups.com](http://40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups  
> > > "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an  
> > > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFWNTxPB57aCwv5cZkH8VdeosgaM1a7hnae%2BZyQvp\_c6g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFWNTxPB57aCwv5cZkH8VdeosgaM1a7hnae%2BZyQvp_c6g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![P\_lva](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@P\_lva](https://discuss.elastic.co/u/P_lva)\
**Post date:** [March 12, 2014, 7:44pm UTC](https://discuss.elastic.co/t/elasticsearch-startup-issues/16303/7 "2014-03-12T19:44:25Z")

</div>

I didnt want elasticsearch to be under a user's directory so I have it in  
/usr/lib/elasticsearch. All the files are owned by the non root user that  
is running the command  
bash /usr/lib/elasticsearch/bin/elasticsearch

On Wednesday, March 12, 2014 2:21:41 PM UTC-5, Jörg Prante wrote:

> And do you start Elasticsearch by the same user you installed  
> Elasticsearch under?
> 
> Jörg
> 
> On Wed, Mar 12, 2014 at 8:19 PM, [joerg...@gmail.com](mailto:joerg...@gmail.com) \<javascript:\> \<  
> [joerg...@gmail.com](mailto:joerg...@gmail.com) \<javascript:\>\> wrote:
> 
> > How do you start Elasticsearch, by
> > 
> > $ cd $ES\_HOME  
> > $ ./bin/elasticsearch
> > 
> > or
> > 
> > $ cd $ES\_HOME/bin  
> > $ ./elasticsearch
> > 
> > or
> > 
> > ...
> > 
> > ?
> > 
> > Jörg
> > 
> > On Wed, Mar 12, 2014 at 8:12 PM, P lva \<[ruv...@gmail.com](mailto:ruv...@gmail.com) \<javascript:\>\>wrote:
> > 
> > > I have  
> > > RHEL 6.  
> > > Java 1.7  
> > > default shell is bash.  
> > > I tried it on a server, it worked fine right out of the box, but when I  
> > > moved to the actual set of servers it failed.  
> > > Its got something to do with environment for sure, but I can't figure  
> > > out what.
> > > 
> > > On Wednesday, March 12, 2014 5:20:56 AM UTC-5, Alexander Reelsen wrote:
> > > 
> > > > Hey,
> > > > 
> > > > can you be more verbose, how you are actually starting elasticsearch,  
> > > > which version you are using, what operating system you are running on,  
> > > > which java version you are running, what is your default shell? Did you  
> > > > modify anything from the standard installation?  
> > > > Thanks.
> > > > 
> > > > --Alex
> > > > 
> > > > On Tue, Mar 11, 2014 at 11:38 PM, P lva [ruv...@gmail.com](mailto:ruv...@gmail.com) wrote:
> > > > 
> > > > > I get this error at elasticsearch startup
> > > > > 
> > > > > Exception in thread "main" java.lang.NoClassDefFoundError:  
> > > > > org.apache.lucene.util.Version  
> > > > > at org.elasticsearch.Version.(Version.java:42)  
> > > > > at java.lang.Class.initializeClass(libgcj.so.10)  
> > > > > at org.elasticsearch.bootstrap.Bootstrap.buildErrorMessage(  
> > > > > Bootstrap.java:252)  
> > > > > at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:178)  
> > > > > at org.elasticsearch.bootstrap.Elasticsearch.main(  
> > > > > Elasticsearch.java:32)
> > > > > 
> > > > > The jar containing this class is present in the lib directory and echo  
> > > > > $ES\_CLASSPATH shows this jar.
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).
> > > > > 
> > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%  
> > > > > [40googlegroups.com](http://40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > .  
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/412cb050-aecf-4309-b230-db2d538ddd12%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/412cb050-aecf-4309-b230-db2d538ddd12%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [March 12, 2014, 7:57pm UTC](https://discuss.elastic.co/t/elasticsearch-startup-issues/16303/8 "2014-03-12T19:57:57Z")

</div>

The script elasticsearch, how you call it with absolute path under system  
dir /usr/lib, has problems in traversing the path to find the parent folder  
and set the variable ES\_HOME.

You should use an init script, like provided by the distributions or the  
service wrapper, with preconfigured environment, so ES\_HOME and  
ES\_CLASSPATH (i.e. the $ES\_HOME/lib folder) can be used.

Jörg

On Wed, Mar 12, 2014 at 8:44 PM, P lva [ruvikal@gmail.com](mailto:ruvikal@gmail.com) wrote:

> I didnt want elasticsearch to be under a user's directory so I have it in  
> /usr/lib/elasticsearch. All the files are owned by the non root user that  
> is running the command  
> bash /usr/lib/elasticsearch/bin/elasticsearch
> 
> On Wednesday, March 12, 2014 2:21:41 PM UTC-5, Jörg Prante wrote:
> 
> > And do you start Elasticsearch by the same user you installed  
> > Elasticsearch under?
> > 
> > Jörg
> > 
> > On Wed, Mar 12, 2014 at 8:19 PM, [joerg...@gmail.com](mailto:joerg...@gmail.com) [joerg...@gmail.com](mailto:joerg...@gmail.com)wrote:
> > 
> > > How do you start Elasticsearch, by
> > > 
> > > $ cd $ES\_HOME  
> > > $ ./bin/elasticsearch
> > > 
> > > or
> > > 
> > > $ cd $ES\_HOME/bin  
> > > $ ./elasticsearch
> > > 
> > > or
> > > 
> > > ...
> > > 
> > > ?
> > > 
> > > Jörg
> > > 
> > > On Wed, Mar 12, 2014 at 8:12 PM, P lva [ruv...@gmail.com](mailto:ruv...@gmail.com) wrote:
> > > 
> > > > I have  
> > > > RHEL 6.  
> > > > Java 1.7  
> > > > default shell is bash.  
> > > > I tried it on a server, it worked fine right out of the box, but when I  
> > > > moved to the actual set of servers it failed.  
> > > > Its got something to do with environment for sure, but I can't figure  
> > > > out what.
> > > > 
> > > > On Wednesday, March 12, 2014 5:20:56 AM UTC-5, Alexander Reelsen wrote:
> > > > 
> > > > > Hey,
> > > > > 
> > > > > can you be more verbose, how you are actually starting elasticsearch,  
> > > > > which version you are using, what operating system you are running on,  
> > > > > which java version you are running, what is your default shell? Did you  
> > > > > modify anything from the standard installation?  
> > > > > Thanks.
> > > > > 
> > > > > --Alex
> > > > > 
> > > > > On Tue, Mar 11, 2014 at 11:38 PM, P lva [ruv...@gmail.com](mailto:ruv...@gmail.com) wrote:
> > > > > 
> > > > > > I get this error at elasticsearch startup
> > > > > > 
> > > > > > Exception in thread "main" java.lang.NoClassDefFoundError:  
> > > > > > org.apache.lucene.util.Version  
> > > > > > at org.elasticsearch.Version.(Version.java:42)  
> > > > > > at java.lang.Class.initializeClass(libgcj.so.10)  
> > > > > > at org.elasticsearch.bootstrap.Bootstrap.buildErrorMessage(Boot  
> > > > > > strap.java:252)  
> > > > > > at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:178)  
> > > > > > at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch  
> > > > > > .java:32)
> > > > > > 
> > > > > > The jar containing this class is present in the lib directory and  
> > > > > > echo $ES\_CLASSPATH shows this jar.
> > > > > > 
> > > > > > --  
> > > > > > You received this message because you are subscribed to the Google  
> > > > > > Groups "elasticsearch" group.  
> > > > > > To unsubscribe from this group and stop receiving emails from it,  
> > > > > > send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).
> > > > > > 
> > > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > > msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40goo  
> > > > > > [glegroups.com](http://glegroups.com)[https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > .  
> > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%  
> > > > > [40googlegroups.com](http://40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/412cb050-aecf-4309-b230-db2d538ddd12%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/412cb050-aecf-4309-b230-db2d538ddd12%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/412cb050-aecf-4309-b230-db2d538ddd12%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/412cb050-aecf-4309-b230-db2d538ddd12%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoH35FjFWvzA0MdNrg0EF\_hHcPTsrBwYXT-skBEUy5D77Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoH35FjFWvzA0MdNrg0EF_hHcPTsrBwYXT-skBEUy5D77Q%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![P\_lva](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@P\_lva](https://discuss.elastic.co/u/P_lva)\
**Post date:** [March 13, 2014, 7:17pm UTC](https://discuss.elastic.co/t/elasticsearch-startup-issues/16303/9 "2014-03-13T19:17:46Z")

</div>

It worked fine after manually setting all the environment variables.

I would say this though.  
Server a : ES out of box works from home dir.  
Server b : ES out of box neither works from /usr/lib/ nor does it work from  
home dir. Only way is to manually set env parameters.  
Both servers are built identically.

On Wednesday, March 12, 2014 2:57:57 PM UTC-5, Jörg Prante wrote:

> The script elasticsearch, how you call it with absolute path under system  
> dir /usr/lib, has problems in traversing the path to find the parent folder  
> and set the variable ES\_HOME.
> 
> You should use an init script, like provided by the distributions or the  
> service wrapper, with preconfigured environment, so ES\_HOME and  
> ES\_CLASSPATH (i.e. the $ES\_HOME/lib folder) can be used.
> 
> Jörg
> 
> On Wed, Mar 12, 2014 at 8:44 PM, P lva \<[ruv...@gmail.com](mailto:ruv...@gmail.com) \<javascript:\>\>wrote:
> 
> > I didnt want elasticsearch to be under a user's directory so I have it in  
> > /usr/lib/elasticsearch. All the files are owned by the non root user that  
> > is running the command  
> > bash /usr/lib/elasticsearch/bin/elasticsearch
> > 
> > On Wednesday, March 12, 2014 2:21:41 PM UTC-5, Jörg Prante wrote:
> > 
> > > And do you start Elasticsearch by the same user you installed  
> > > Elasticsearch under?
> > > 
> > > Jörg
> > > 
> > > On Wed, Mar 12, 2014 at 8:19 PM, [joerg...@gmail.com](mailto:joerg...@gmail.com) [joerg...@gmail.com](mailto:joerg...@gmail.com)wrote:
> > > 
> > > > How do you start Elasticsearch, by
> > > > 
> > > > $ cd $ES\_HOME  
> > > > $ ./bin/elasticsearch
> > > > 
> > > > or
> > > > 
> > > > $ cd $ES\_HOME/bin  
> > > > $ ./elasticsearch
> > > > 
> > > > or
> > > > 
> > > > ...
> > > > 
> > > > ?
> > > > 
> > > > Jörg
> > > > 
> > > > On Wed, Mar 12, 2014 at 8:12 PM, P lva [ruv...@gmail.com](mailto:ruv...@gmail.com) wrote:
> > > > 
> > > > > I have  
> > > > > RHEL 6.  
> > > > > Java 1.7  
> > > > > default shell is bash.  
> > > > > I tried it on a server, it worked fine right out of the box, but when  
> > > > > I moved to the actual set of servers it failed.  
> > > > > Its got something to do with environment for sure, but I can't figure  
> > > > > out what.
> > > > > 
> > > > > On Wednesday, March 12, 2014 5:20:56 AM UTC-5, Alexander Reelsen wrote:
> > > > > 
> > > > > > Hey,
> > > > > > 
> > > > > > can you be more verbose, how you are actually starting elasticsearch,  
> > > > > > which version you are using, what operating system you are running on,  
> > > > > > which java version you are running, what is your default shell? Did you  
> > > > > > modify anything from the standard installation?  
> > > > > > Thanks.
> > > > > > 
> > > > > > --Alex
> > > > > > 
> > > > > > On Tue, Mar 11, 2014 at 11:38 PM, P lva [ruv...@gmail.com](mailto:ruv...@gmail.com) wrote:
> > > > > > 
> > > > > > > I get this error at elasticsearch startup
> > > > > > > 
> > > > > > > Exception in thread "main" java.lang.NoClassDefFoundError:  
> > > > > > > org.apache.lucene.util.Version  
> > > > > > > at org.elasticsearch.Version.(Version.java:42)  
> > > > > > > at java.lang.Class.initializeClass(libgcj.so.10)  
> > > > > > > at org.elasticsearch.bootstrap.Bootstrap.buildErrorMessage(Boot  
> > > > > > > strap.java:252)  
> > > > > > > at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:178)  
> > > > > > > at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch  
> > > > > > > .java:32)
> > > > > > > 
> > > > > > > The jar containing this class is present in the lib directory and  
> > > > > > > echo $ES\_CLASSPATH shows this jar.
> > > > > > > 
> > > > > > > --  
> > > > > > > You received this message because you are subscribed to the Google  
> > > > > > > Groups "elasticsearch" group.  
> > > > > > > To unsubscribe from this group and stop receiving emails from it,  
> > > > > > > send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).
> > > > > > > 
> > > > > > > To view this discussion on the web visit  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78](https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78)  
> > > > > > > a-4d93-a1e4-5c442fab1bee%[40googlegroups.com](http://40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > > .  
> > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > 
> > > > > > --  
> > > > > > You received this message because you are subscribed to the Google  
> > > > > > Groups "elasticsearch" group.  
> > > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > > msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%  
> > > > > > [40googlegroups.com](http://40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > .
> > > > > 
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups  
> > > "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an  
> > > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/412cb050-aecf-4309-b230-db2d538ddd12%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/412cb050-aecf-4309-b230-db2d538ddd12%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/412cb050-aecf-4309-b230-db2d538ddd12%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/412cb050-aecf-4309-b230-db2d538ddd12%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/add0ad6a-83d3-46c7-a440-9d3a5dbdc8a5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/add0ad6a-83d3-46c7-a440-9d3a5dbdc8a5%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:43am UTC](https://discuss.elastic.co/t/elasticsearch-startup-issues/16303/10 "2017-07-06T01:43:21Z")

</div>


