Question: (Closed) how can i remove java 1.8 from my ubuntu 14.04
0
gravatar for Kurban
4.1 years ago by
Kurban170
china/Urumqi/xinjiang academy of animal scinces
Kurban170 wrote:

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 remover it.

have anybody encountered it before. please give me some suggestions !!!

software error • 5.3k views
ADD COMMENTlink modified 4.1 years ago by wpwupingwp110 • written 4.1 years ago by Kurban170
1

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.

ADD REPLYlink modified 4.1 years ago • written 4.1 years ago by cmdcolin1.2k

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

 

 

 

ADD REPLYlink written 4.1 years ago by Kurban170

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. 

 

 

 

ADD REPLYlink modified 4.1 years ago • written 4.1 years ago by cmdcolin1.2k

thanks @ cmdcolin,

there is a vedio 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.

 

ADD REPLYlink written 4.1 years ago by Kurban170

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!

ADD REPLYlink written 4.1 years ago by Pierre Lindenbaum120k

that is okay @Pierre Lindenbaum.

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

sincerely.

ADD REPLYlink written 4.1 years ago by Kurban170
0
gravatar for wpwupingwp
4.1 years ago by
wpwupingwp110
China
wpwupingwp110 wrote:

Have you ever installed openjdk-8-jre?

ADD COMMENTlink written 4.1 years ago by wpwupingwp110

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)
ADD REPLYlink written 4.1 years ago by Kurban170
0
gravatar for wpwupingwp
4.1 years ago by
wpwupingwp110
China
wpwupingwp110 wrote:

https://help.ubuntu.com/community/Java

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

ADD COMMENTlink written 4.1 years ago by wpwupingwp110

thanks @ wpwupingwp,

i think that helps.

ADD REPLYlink written 4.1 years ago by Kurban170
Please log in to add an answer.
The thread is closed. No new answers may be added.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1826 users visited in the last hour