# Manual start of ES failing

**URL:** https://discuss.elastic.co/t/manual-start-of-es-failing/10007
**Category:** Elasticsearch
**Created:** [December 9, 2012, 9:52pm UTC](https://discuss.elastic.co/t/manual-start-of-es-failing/10007 "2012-12-09T21:52:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Robin\_Verlangen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robin_verlangen/32/1542_2.png) [@Robin\_Verlangen](https://discuss.elastic.co/u/Robin_Verlangen)
#### Post date: [December 9, 2012, 9:52pm UTC](https://discuss.elastic.co/t/manual-start-of-es-failing/10007/1 "2012-12-09T21:52:07Z")

</div>

Hi there,

For my purpose I need to start ES from the commandline myself (so no  
scripts involved).

I currently try to do this with (root folder of ES is  
/root/myproject/dataengine/):

_/usr/bin/java -Xms256m -Xmx1g -Xss256k -XX:+UseParNewGC  
-XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75  
-XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError  
-Delasticsearch -Des-foreground=no  
-Des.path.home="/root/myproject/dataengine" -cp  
";/root/myproject/dataengine/lib/elasticsearch-0.19.10.jar;/root/myproject/dataengine/lib/_;/root/myproject/dataengine/config/log4j.properties;/root/myproject/dataengine/lib/sigar/_"  
"org.elasticsearch.bootstrap.ElasticSearch"_

However this does not work:

_Exception in thread "main" java.lang.NoClassDefFoundError:  
org/elasticsearch/bootstrap/ElasticSearch_  
_Caused by: java.lang.ClassNotFoundException:  
org.elasticsearch.bootstrap.ElasticSearch_

- 

```
   at java.net.URLClassLoader$1.run(URLClassLoader.java:217)*

```

- 

```
   at java.security.AccessController.doPrivileged(Native Method)*

```

- 

```
   at java.net.URLClassLoader.findClass(URLClassLoader.java:205)*

```

- 

```
   at java.lang.ClassLoader.loadClass(ClassLoader.java:321)*

```

- 

```
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)*

```

- 

```
   at java.lang.ClassLoader.loadClass(ClassLoader.java:266)*

```

_Could not find the main class: org.elasticsearch.bootstrap.ElasticSearch.  
Program will exit._

Strang thing is, the Java code I use to start ES up works in Windows (this  
is from a CentOS box). Does anyone see a strange folder structure or  
something?

Best regards,

Robin Verlangen  
_Software engineer_  
\*  
\*  
W [http://www.robinverlangen.nl](http://www.robinverlangen.nl)  
E robin@us2.nl

[http://goo.gl/Lt7BC](http://goo.gl/Lt7BC)

Disclaimer: The information contained in this message and attachments is  
intended solely for the attention and use of the named addressee and may be  
confidential. If you are not the intended recipient, you are reminded that  
the information remains the property of the sender. You must not use,  
disclose, distribute, copy, print or rely on this e-mail. If you have  
received this message in error, please contact the sender immediately and  
irrevocably delete this message and any copies.

--

---

<div class="post-metadata">

### Author: ![Randall\_McRee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/randall_mcree/32/47177_2.png) [@Randall\_McRee](https://discuss.elastic.co/u/Randall_McRee)
#### Post date: [December 10, 2012, 1:39am UTC](https://discuss.elastic.co/t/manual-start-of-es-failing/10007/2 "2012-12-10T01:39:33Z")

</div>

Change ; to : for linux in the classpath. Thats all.

Sent from my iPhone

On Dec 9, 2012, at 1:52 PM, Robin Verlangen [robin@us2.nl](mailto:robin@us2.nl) wrote:

> Hi there,
> 
> For my purpose I need to start ES from the commandline myself (so no scripts involved).
> 
> I currently try to do this with (root folder of ES is /root/myproject/dataengine/):
> 
> /usr/bin/java -Xms256m -Xmx1g -Xss256k -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des-foreground=no -Des.path.home="/root/myproject/dataengine" -cp ";/root/myproject/dataengine/lib/elasticsearch-0.19.10.jar;/root/myproject/dataengine/lib/_;/root/myproject/dataengine/config/log4j.properties;/root/myproject/dataengine/lib/sigar/_" "org.elasticsearch.bootstrap.Elasticsearch"
> 
> However this does not work:
> 
> Exception in thread "main" java.lang.NoClassDefFoundError: org/elasticsearch/bootstrap/Elasticsearch  
> Caused by: java.lang.ClassNotFoundException: org.elasticsearch.bootstrap.Elasticsearch  
> at java.net.URLClassLoader$1.run(URLClassLoader.java:217)  
> at java.security.AccessController.doPrivileged(Native Method)  
> at java.net.URLClassLoader.findClass(URLClassLoader.java:205)  
> at java.lang.ClassLoader.loadClass(ClassLoader.java:321)  
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)  
> at java.lang.ClassLoader.loadClass(ClassLoader.java:266)  
> Could not find the main class: org.elasticsearch.bootstrap.Elasticsearch. Program will exit.
> 
> Strang thing is, the Java code I use to start ES up works in Windows (this is from a CentOS box). Does anyone see a strange folder structure or something?
> 
> Best regards,
> 
> Robin Verlangen  
> Software engineer
> 
> W [http://www.robinverlangen.nl](http://www.robinverlangen.nl)  
> E robin@us2.nl
> 
> Disclaimer: The information contained in this message and attachments is intended solely for the attention and use of the named addressee and may be confidential. If you are not the intended recipient, you are reminded that the information remains the property of the sender. You must not use, disclose, distribute, copy, print or rely on this e-mail. If you have received this message in error, please contact the sender immediately and irrevocably delete this message and any copies.
> 
> --

--

---

<div class="post-metadata">

### Author: ![Robin\_Verlangen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robin_verlangen/32/1542_2.png) [@Robin\_Verlangen](https://discuss.elastic.co/u/Robin_Verlangen)
#### Post date: [December 10, 2012, 2:28pm UTC](https://discuss.elastic.co/t/manual-start-of-es-failing/10007/3 "2012-12-10T14:28:28Z")

</div>

Thank you Randy, that should work. Stupid me 😉

Best regards,

Robin Verlangen  
_Software engineer_  
\*  
\*  
W [http://www.robinverlangen.nl](http://www.robinverlangen.nl)  
E robin@us2.nl

[http://goo.gl/Lt7BC](http://goo.gl/Lt7BC)

Disclaimer: The information contained in this message and attachments is  
intended solely for the attention and use of the named addressee and may be  
confidential. If you are not the intended recipient, you are reminded that  
the information remains the property of the sender. You must not use,  
disclose, distribute, copy, print or rely on this e-mail. If you have  
received this message in error, please contact the sender immediately and  
irrevocably delete this message and any copies.

On Mon, Dec 10, 2012 at 2:39 AM, Randy [randall.mcree@gmail.com](mailto:randall.mcree@gmail.com) wrote:

> Change ; to : for linux in the classpath. Thats all.
> 
> Sent from my iPhone
> 
> On Dec 9, 2012, at 1:52 PM, Robin Verlangen [robin@us2.nl](mailto:robin@us2.nl) wrote:
> 
> Hi there,
> 
> For my purpose I need to start ES from the commandline myself (so no  
> scripts involved).
> 
> I currently try to do this with (root folder of ES is  
> /root/myproject/dataengine/):
> 
> _/usr/bin/java -Xms256m -Xmx1g -Xss256k -XX:+UseParNewGC  
> -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75  
> -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError  
> -Delasticsearch -Des-foreground=no  
> -Des.path.home="/root/myproject/dataengine" -cp  
> ";/root/myproject/dataengine/lib/elasticsearch-0.19.10.jar;/root/myproject/dataengine/lib/_;/root/myproject/dataengine/config/log4j.properties;/root/myproject/dataengine/lib/sigar/_"  
> "org.elasticsearch.bootstrap.Elasticsearch"_
> 
> However this does not work:
> 
> _Exception in thread "main" java.lang.NoClassDefFoundError:  
> org/elasticsearch/bootstrap/Elasticsearch_  
> _Caused by: java.lang.ClassNotFoundException:  
> org.elasticsearch.bootstrap.Elasticsearch_
> 
> - 
> 
> ```
> at java.net.URLClassLoader$1.run(URLClassLoader.java:217)*
> 
> ```
> 
> - 
> 
> ```
> at java.security.AccessController.doPrivileged(Native Method)*
> 
> ```
> 
> - 
> 
> ```
> at java.net.URLClassLoader.findClass(URLClassLoader.java:205)*
> 
> ```
> 
> - 
> 
> ```
> at java.lang.ClassLoader.loadClass(ClassLoader.java:321)*
> 
> ```
> 
> - 
> 
> ```
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)*
> 
> ```
> 
> - 
> 
> ```
> at java.lang.ClassLoader.loadClass(ClassLoader.java:266)*
> 
> ```
> 
> _Could not find the main class:  
> org.elasticsearch.bootstrap.Elasticsearch. Program will exit._
> 
> Strang thing is, the Java code I use to start ES up works in Windows (this  
> is from a CentOS box). Does anyone see a strange folder structure or  
> something?
> 
> Best regards,
> 
> Robin Verlangen  
> _Software engineer_  
> \*  
> \*  
> W [http://www.robinverlangen.nl](http://www.robinverlangen.nl)  
> E robin@us2.nl
> 
> [http://goo.gl/Lt7BC](http://goo.gl/Lt7BC)
> 
> Disclaimer: The information contained in this message and attachments is  
> intended solely for the attention and use of the named addressee and may be  
> confidential. If you are not the intended recipient, you are reminded that  
> the information remains the property of the sender. You must not use,  
> disclose, distribute, copy, print or rely on this e-mail. If you have  
> received this message in error, please contact the sender immediately and  
> irrevocably delete this message and any copies.
> 
> --
> 
> --

--

---

<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, 3:00am UTC](https://discuss.elastic.co/t/manual-start-of-es-failing/10007/4 "2017-07-06T03:00:34Z")

</div>


