Fedora: Uninstall Java JDK 1.8 and install Oracle Java 1.7.15


 
Thread Tools Search this Thread
Operating Systems Linux Fedora Fedora: Uninstall Java JDK 1.8 and install Oracle Java 1.7.15
# 1  
Old 12-21-2017
Error Fedora: Uninstall Java JDK 1.8 and install Oracle Java 1.7.15

Hi All,

I have just downloaded fedora 27 iso and set it up in virtual box.

I want to learn Hadoop so trying to install Apache hadoop. Before all those I have to install Oracle Java 1.7.15 (as mentioned in the Apache hadoop page).

Can you please help me how to Uninstall currently installed Java JDK (1.8.XX) in install the new Oracle Java 1.7.15.?

Would be of great help if you can also share steps to intall hadopp, pig an hive in fedora.

Best,
Tech
# 2  
Old 12-21-2017
This is how you remove Java JDK on Fedora
Code:
sudo dnf remove java-1.8.0-openjdk -y


Last edited by milhan; 12-21-2017 at 04:24 PM..
This User Gave Thanks to milhan For This Post:
# 3  
Old 12-21-2017
Quote:
Originally Posted by milhan
This is how you remove Java JDK on Fedora
Code:
sudo dnf remove java-1.8.0-openjdk -y


Thank you. May I know where to learn all these commands please?

I want to learn basics like how to install, uninstall.
Where will the files get copied if i install., and other stuffs.
# 4  
Old 12-21-2017
Quote:
Originally Posted by TechGyaann
Thank you. May I know where to learn all these commands please?

I want to learn basics like how to install, uninstall.
Where will the files get copied if i install., and other stuffs.
man pages is the best place to get started and to advance. lookup man pages for dnf. since dnf is an administrative command you always precede it with sudo when invoking.
# 5  
Old 12-22-2017
Quote:
Originally Posted by milhan
man pages is the best place to get started and to advance. lookup man pages for dnf. since dnf is an administrative command you always precede it with sudo when invoking.
Thank you !!
# 6  
Old 12-22-2017
Quote:
Originally Posted by TechGyaann
Thank you !!
not a problem.
# 7  
Old 12-23-2017
No need to uninstall anything.

Install the required oracle java using rpm.
Using alternatives command as superuser one can change the default java used.

Bare in mind, that perhaps some programs on the system rely on open java, so above change could affect those.

One could also download only required oracle java as compressed archive with all binaries and libraries required.
Create a user on the system which will utilize that java environment.
Unpack the archive under /opt/orajava (for instance)
As root, chown /opt/orajava to user created.
Setup required java options in user home directory profile file (JAVA_HOME etc.)
Configure kernel parameters for that user, depending on the application requirements/load (if applicable, defaults are often ok).

Above setup will have no effect on the system other then running new processes/code (load) under user created above and consuming disk space required.

Hope that helps
Regards
Peasant.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Fedora java classpath

What is the proper way to set your java classpath? (0 Replies)
Discussion started by: cokedude
0 Replies

2. AIX

Any file to differentiate JAVA JRE and JAVA JDK

Folks, Any idea of where can I find a specific file to differentiate JRE and Java JDK installed on AIX platform :cool: (3 Replies)
Discussion started by: dellcisco
3 Replies

3. Solaris

How to install java (jdk-74) on solaris 10?

What kind of required java type for installed? which address link, i need to download the package. i have zcat this version jdk-7-solaris-sparc.tar.Z and then installed each the packages with pkgadd -d . , but my java version still java full version "1.5.0_24-b02".is it need doanything after... (1 Reply)
Discussion started by: aagusman
1 Replies

4. Red Hat

What Sun Java packages are available for Fedora?

Are all of these java packages available for fedora? I use several VERY picky websites that want all of these packages to properly work. sun-java6-jre sun-java6-bin sun-java6-jdk sun-java6-plugin sun-java6-fonts (1 Reply)
Discussion started by: cokedude
1 Replies

5. Red Hat

help with installing java EE on fedora 14

Hi Forum Im a new to fedora and was wondering ,Can anybody direct me to a site that shows me how to install Java EE 6 SDK Update 1 (with JDK 6 Update 23) for fedora 14. NOT openjdk i need oracles java to develop a web app using tomcat 7.0 Any help would be much appreciated and thank you in advance (1 Reply)
Discussion started by: ShinTec
1 Replies

6. Red Hat

Java in Fedora, first

For those of us who slept through the month of June, the OpenJDK 6 stack in Fedora was certified as TCK compliant. Meaning it can carry the “100% Java(TM)” moniker. Rich Sharples has a nice write-up (with a second part answering the blogosphere): In June, 2007 - Red Hat launched the IcedTea... (0 Replies)
Discussion started by: Linux Bot
0 Replies
Login or Register to Ask a Question