I’m running Ubuntu 15.10.
So, I just uploaded the Android Studio from the site.
After that I unpacked the zip file.
Went to android-studio/bin and found studio.sh.
Sit permission to be executed chmod +x studio.sh
.
Ran the file to install with this line: ./studio.sh
.
Then I had the error
No JDK found. Please validate either STUDIO_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation.
I have already netbeans installed. I just ran the instalation package file JDK + Netbeans, so it was supposed to have java environments variables sit.
If I run pintenv
the PATH environment variable do not hold the path to java. This is what I have:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
So, how can I find the location where Java was installed? I could set the PATH variable manually.
Any idea how to solve this issue?
Advertisement
Answer
I had very simmilar problem, I had all JAVA_HOME and other things done but I forget to set below lines in terminal:
update-alternatives –install /usr/bin/java java /opt/java/jdk1.8.0_45/bin/java 100
update-alternatives –config java