I have downloaded JDK and set the Path correctly, there are my outputs:
echo $JAVA_HOME
/home/me/Applications/jdk1.8.0_65
echo $PATH
/home/me/Applications/jdk1.8.0_65/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
yet i get the problem below:
sudo /etc/init.d/elasticsearch start
Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME
Is there any problem with my Java installation, the files in the java bin directory are executable ?