I tried to install Android Studio but it gave me several problems.
Among them is that they told me that it need Java 8 while on my PC Java 11 is installed.
When I run java -version
, the result is the following:
java version "11.0.2" 2018-10-16 LTS Java (TM) SE Runtime Environment
18.9 (build 11.0.2 + 7-LTS) Java HotSpot (TM) 64-Bit Server VM 18.9 (build 11.0.2 + 7-LTS, mixed mode)
I see that java is in /usr/bin
, in fact there are several java folder/files:
java, javac, javadoc, javafxpackager, javah, javap, javapackager, javaws
How should I remove java in order to install Java 8 and be able to install Android Studio correctly?
Output of ls -l /usr/bin/java
:
lrwxrwxrwx 1 root root 22 feb 5 18:56 /usr/bin/java -> /etc/alternatives/java
Output of ls -l /etc/alternatives/java
:
lrwxrwxrwx 1 root root 36 feb 16 23:33 /etc/alternatives/java -> /usr/lib/jvm/java-11-oracle/bin/java
I have tried several commands, but the problem is that I do not know exactly how to install it. On the other hand, when I search for Java in "UBUNTU SOFTWARE", Java does not appear.