I downloaded and installed elasticsearch

But when I do ./bin/elasticsearch it says it can't find the bundled jdk.

Why do I have to set JAVA_HOME for Elasticsearch to use it's bundled Java?

And if I have to set JAVA_HOME, what exactly do I need to do ?

What file do I edit and what syntax do I use ?

Let's continue the same discussion where you started it : I downloaded and installed elasticsearch - #5 by PaulGureghian

I'm closing this one. Thanks.