Today I installed Android Studio but when I opened it raised the error:
'tools.jar' seems to be not in Android Studio classpath. Please ensure JAVA_HOME points to JDK rather than JRE.
I have already installed JDK from the Ubuntu Software Center but I decide to remove it and reinstall it by command-line following these instruction. The guide that I follow for remove it is that answer, this and this. How can I uninstall it? I know that it is installed for the output of java -version
and javac -version
Here any information:
The dpkg --list | grep -i jdk
command gives nothing
The command java -version
gives:
The program 'java' can be found in the following packages:
* default-jre
* gcj-4.6-jre-headless
* gcj-4.7-jre-headless
* openjdk-7-jre-headless
* openjdk-6-jre-headless
Try: sudo apt-get install <selected package>
The command javac -version
gives this:
`TThe program 'javac' can be found in the following packages:
* default-jdk
* ecj
* gcj-4.6-jdk
* gcj-4.7-jdk
* openjdk-7-jdk
* openjdk-6-jdk
Try: sudo apt-get install <selected package>
if I run ls /usr/lib/jvm
it says that there isn't such directory.
I would like to remove JDK and JRE before install packages. How can I do that?