I downloaded jdk-8u11-nb-8-linux-i586.sh and installed it in my home folder. Then I install NetBeans, it is successful I think because I can compile my java code using netbeans. Now when I install android studio, it says
No JDK found. Please validate either STUDIO_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation.
I tried adding environmental variables,
export JAVA_HOME=/home/port8080/jdk1.8.0_11/bin/java
export PATH=$PATH:/home/port8080/jdk1.8.1.0_11/bin
but when I tried java -version my installed jdk is still not detected. Now I am going to install java via apt-get.
Is it okay to install via apt-get at the same time I already installed it in home? how can I fix this so I can work with netbeans which requires jdk from my home folder?
I am also, thinking that when I finish installing jdk via apt-get it will install in /usr/ .