I have just downloaded the Android Studio and when I try to run ./studio.sh
it gives me an error of
'tools.jar' seems to be not in Android Studio classpath. Please ensure JAVA_HOME points to JDK rather than JRE
I have checked /usr/lib/jvm/java-1.7.0-openjdk-amd64
this folder java
is there and I have set the environment variables in
/etc/environment
as
JAVA_HOME="/usr/lib/jvm/java-1.7.0-openjdk-amd64/"
but still, the same error is coming, Please help me out,
after saving this file, if I check
echo $JAVA_HOME
nothing comes and when I try
source /etc/environment
it comes as
JAVA_HOME: command not found
How should I proceed?