# You must set ES\_CLASSPATH

**URL:** https://discuss.elastic.co/t/you-must-set-es-classpath/8284
**Category:** Elasticsearch
**Created:** [July 2, 2012, 3:24pm UTC](https://discuss.elastic.co/t/you-must-set-es-classpath/8284 "2012-07-02T15:24:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![John\_Beynon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_beynon/32/2829_2.png) [@John\_Beynon](https://discuss.elastic.co/u/John_Beynon)
#### Post date: [July 2, 2012, 3:24pm UTC](https://discuss.elastic.co/t/you-must-set-es-classpath/8284/1 "2012-07-02T15:24:30Z")

</div>

Hi,

I'm new to ES so be gentle 🙂

I'm scripting a server build via Chef and am getting the error messge

You must set the ES\_CLASSPATH var

whenever I try to start ElasticSearch. The only other question that relates  
to this in the forum asks what the output of 'java -v' gives - my output is  
below;

java version "1.6.0\_24"  
OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu2)  
OpenJDK Client VM (build 20.0-b12, mixed mode, sharing)

Any ideas?

Thanks,

John.

---

<div class="post-metadata">

### Author: ![drewr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewr/32/7803_2.png) [@drewr](https://discuss.elastic.co/u/drewr)
#### Post date: [July 2, 2012, 4:03pm UTC](https://discuss.elastic.co/t/you-must-set-es-classpath/8284/2 "2012-07-02T16:03:15Z")

</div>

John Beynon wrote:

> I'm scripting a server build via Chef and am getting the error messge
> 
> You must set the ES\_CLASSPATH var

bin/elasticsearch is having trouble finding bin/elasticsearch.in.sh.  
What does your run script that chef writes out look like?

-Drew

---

<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:21am UTC](https://discuss.elastic.co/t/you-must-set-es-classpath/8284/3 "2017-07-06T03:21:47Z")

</div>


