This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how can I remove java 1.8 from my ubuntu 14.04

Tried Trinity for de novo assembly, but it requires java 1.7:

kurban@kurban-X550VC:~/Desktop/Trinity$ ~/Downloads/trinityrnaseq-2.0.6/Trinity --seqType fq --left R1.fq --right R2.fq --CPU 3 --max_memory 3G
Error, Trinity requires access to Java version 1.7.  Currently installed version is: java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
kurban@kurban-X550VC:~/Desktop/Trinity$ rpm -qa jdk
kurban@kurban-X550VC:~/Desktop/Trinity$ sudo rpm -qa jdk
kurban@kurban-X550VC:~/Desktop/Trinity$

And I tried to remove my current version java fro several hours, now its almost dawn here, but I still could not remove it.

Have anybody encountered it before. Please give me some suggestions!

software-error

Have you ever installed openjdk-8-jre?

Hey @wpwupingwp,

I do not know, does this not the version?

kurban@kurban-X550VC:~$ sudo java -version
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

If you are using Ubuntu you would use apt-get instead of rpm. Can you double check what OS you are running? Also you can easily install multiple versions of java on the same machine. You would just set the PATH to specify which java binary directory you want to refer to.

Hey @cmdcolin,

My OS is ubuntu 14.04LTS, and I tried apt-get:

kurban@kurban-X550VC:~$ sudo java -version
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

kurban@kurban-X550VC:~$ sudo apt-get remove java
[sudo] password for kurban: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package java

Try running sudo update-alternatives --config java and see java 1.7 shows up. If it does, select it, and then your system java will now be 1.7. If it is not in the list, install it with sudo apt-get install openjdk-7-jre and then re-run the update-alternatives command.

Thanks @cmdcolin,

There is a video about it on youtube, which helped me delete all the java version on my PC. And I used sudo apt-get install openjdk-7-jre installed the version. Now the tool works find.

Hello Kurban!

We believe that this post does not fit the main topic of this site.

The question is not related to bioinformatics, it's just sysadmin.

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

That is okay @Pierre.

Since most of the time I can find answers in biostars to problems I should thank you guys.

Sincerely.

1 answer

See this, it may help you, in the chapter Choosing the default Java to use

Log in to answer this question.