LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-13-2016, 03:00 AM   #1
sysmicuser
Member
 
Registered: Mar 2010
Posts: 458

Rep: Reputation: 0
Unhappy Unable to remove java 8 from home(path)


No idea how to remove java 8

Code:
[jim@docker1 ~]$ java -version
openjdk version "1.8.0_101"
OpenJDK Runtime Environment (build 1.8.0_101-b13)
OpenJDK 64-Bit Server VM (build 25.101-b13, mixed mode)
[jim@docker1 ~]$
Although I did
Code:
[jim@docker1 ~]$ sudo yum remove java
I dig little further and this is what I see:

Code:
[jim@docker1 ~]$ java -version
openjdk version "1.8.0_101"
OpenJDK Runtime Environment (build 1.8.0_101-b13)
OpenJDK 64-Bit Server VM (build 25.101-b13, mixed mode)
[jim@docker1 ~]$ which java
/usr/bin/java
[jim@docker1 ~]$ ls -l /usr/bin/java 
lrwxrwxrwx. 1 root root 22 Aug 13 14:45 /usr/bin/java -> /etc/alternatives/java
[jim@docker1 ~]$ ls -l /etc/alternatives/java
lrwxrwxrwx. 1 root root 73 Aug 13 14:45 /etc/alternatives/java -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64/jre/bin/java
[jim@docker1 ~]$

Please assist me as even I install Java 7 this version overrides thereby I am not able to install Tomcat 8
 
Old 08-13-2016, 04:29 AM   #2
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
Find out which package is providing java 1.8
Code:
$ rpm -qf --queryformat='%{name}\n' /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64/jre/bin/java
then remove that package.

The java package is probably meta package or not actually a package at all and yum is installing whatever package is marked as providing java.

You should provide details of the distribution and version you are using as this will help people to help you.

Last edited by arizonagroovejet; 08-13-2016 at 04:30 AM. Reason: or not actually a package at all…
 
1 members found this post helpful.
Old 08-13-2016, 07:58 AM   #3
sysmicuser
Member
 
Registered: Mar 2010
Posts: 458

Original Poster
Rep: Reputation: 0
Thanks for your reply. I actually uninstalled all java packages by quering rpm -qa and then removing each individual package.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] unable to remove user home directory daisychick Linux - Newbie 8 11-15-2011 11:13 PM
[SOLVED] set java home path porphyry5 Slackware 7 04-24-2011 02:30 PM
set up java_home path in /home/user/.bashrc but use path in /usr/lib/java vitalstrike82 Slackware 4 01-13-2009 11:25 PM
how to set up path,classpath,catalina home for java in fedora -9 vicky7038 Linux - Software 1 08-19-2008 08:41 AM
java home/path konfigure SUSE / openSUSE 4 07-02-2007 09:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration