0

I was trying to execute the android.sh file in the terminal from my desktop; I got the following errors in my terminal:

$ sudo chmod +x ~/Desktop/android-sdk-linux/tools/android.sh

[sudo] password for soorej: 

$ sh ~/Desktop/android-sdk-linux/tools/android.sh

/home/soorej/Desktop/android-sdk-linux/tools/android.sh: 1: /home/soorej/Desktop/android-sdk-linux/tools/android.sh: java: not found
/home/soorej/Desktop/android-sdk-linux/tools/android.sh: 1: /home/soorej/Desktop/android-sdk-linux/tools/android.sh: java: not found
/home/soorej/Desktop/android-sdk-linux/tools/android.sh: 110: exec: java: not found
bolzano
  • 1,540
  • 14
  • 24
Kannan Soorej
  • 99
  • 1
  • 3
  • 10
  • http://meta.askubuntu.com/questions/14089/please-can-people-format-code-properly – Tim Jun 11 '15 at 13:32
  • 1
    If you read the error, it tells you. Java not found. Are you sure you have it installed and configured properly? [Install Java on Ubuntu with Apt-get](https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get) – Victor Jun 11 '15 at 13:52

1 Answers1

0

java: not found is pretty self-explanatory. Please install Java and try again...

For more information on how to do that check refer to this question

Davide
  • 190
  • 1
  • 4