1

To uninstall java I followed this.

When I have uninstalled java completely , java -version shows openjdk version "11.0.1" . It's supposed to be no java at all, isn't it?. enter image description here

Then I've installed java 8, still java -version command yields openjdk version "11.0.1".

I need java for running a bioinformatics tool called Integrative Genomics Viewer(igv). After installing java 8 it continues to tell me I need java 8. enter image description here

Please help.

2 Answers2

2

The IGV program started for me, these were the steps I took:

I uninstalled my version of Java and installed Java 8.

$ java -version
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)

$ sudo apt remove openjdk*

$ java -version
bash: /usr/bin/java: No such file or directory

$ sudo apt update

$ sudo apt install openjdk-8-jdk

$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

$ cd  Downloads/IGV_2.4.16
~/Downloads/IGV_2.4.16 $ ls
igv.command  igv.sh  lib  readme.txt

$ chmod a+x igv.sh  //Made the script executable
$ ./igv.sh  //Execute the script and start the program.

Hope this works for you.

Kulfy
  • 18,154
0

Sounds like you did not delete openjdk if it's still listed. Try running sudo apt-get purge --auto-remove openjdk* to remove the unsupported version of java, then install java 8.