Home » Android » java – studio.sh command not found – Ubuntu

java – studio.sh command not found – Ubuntu

Posted by: admin June 15, 2020 Leave a comment

Questions:

I am trying to get Android Studio running. I have installed jdk and jre

sudo apt-get install default-jre
sudo apt-get install default-jdk

I have set up my .bashrc and /etc/environment file to

export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH

but still nothing.

$JAVA_HOME returns correct value and so do java -version and whereis javac

What am I missing?

How to&Answers:

Following step worked for me

  1. cd to YOUR_DIR_WHERE_ANDROID_STUDIO_TILL_BIN_FOLDER
  2. then type command sh studio.sh or ./studio.sh

Answer:

Try using sh ./studio.sh instead. Good luck.

Answer:

It worked for me
-> Go to directory that has android studio bin.

-> Instead of using studio.sh use the command sh studio.shenter image description here