Ask Your Question
0

How to install orcle jdk-8u40-linux-x64.tar.gz in fedora 21?

asked 2015-03-19 17:25:06 -0600

ddkroyal001 gravatar image

updated 2015-03-19 18:44:48 -0600

mether gravatar image

How to install orcle jdk-8u40-linux-x64.tar.gz in fedora 21? I want to use android sdk and during installation it shows it has some problem with open jdk i.e."OpenJDK shows intermittent performance and UI issues. We recommend using the Oracle JRE/JDK". i have downloaded the file jdk-8u40-linux-x64.tar.gz and want to install it offline and make it by default.

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
1

answered 2015-03-20 14:42:20 -0600

deusdara gravatar image

Hi

Here you can see all steps to install orcle jdk-8u40-linux-x64.tar.gz in fedora 21

How to Install JAVA 8 (JDK 8u40) on CentOS/RHEL 7/6/5 and Fedora 

http://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/
edit flag offensive delete link more
1

answered 2015-03-20 09:09:12 -0600

baykan_t gravatar image

updated 2015-03-20 09:10:13 -0600

  1. Extract the archive somewhere. You will have a folder named jdk1.8.0_40

  2. as root user, copy the folder to /usr/java (make folder java if not present.) You will have /usr/java/jdk1.8.0_40 after that.

  3. (optional) RPM of the jdk also creates symbolic links in /usr/java folder, if you do not have any previous version of Oracle jdk in your system, create them manually in /usr/java as follows as root user.

    ln -s /usr/java/jdk1.8.0_40 /usr/java/latest

    ln -s /usr/java/latest /usr/java/default

  4. (optional) if you need this java package shall be the default java add java binary to alternatives as follows as root user (or use sudo for all root commands)

    alternatives --install /usr/bin/java java /usr/java/jdk1.8.0_40/bin/java 1900000

edit flag offensive delete link more

Comments

As oracle java rpm's remove the previous versions of the jdk and I want to keep them, I prefer to manually install them using tar.gz

baykan_t gravatar imagebaykan_t ( 2015-03-20 09:12:46 -0600 )edit
0

answered 2015-03-19 20:17:23 -0600

iddnna gravatar image

Hello, the version 8 of JDK can be download from oracle site

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

just accept the license and download the "jdk-8u40-linux-x64.rpm"

later you can install this with "yumex" or in the terminal . go to the directory where is the jdk.rpm and later install with rpm command.

example

cd Downloads sudo rpm -ivh jdk-8u40-linux-x64.rpm

its all :)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-03-19 17:25:06 -0600

Seen: 3,492 times

Last updated: Mar 20 '15