[SOLVED] Updating Java (newbie)

Issues related to applications and software problems
Post Reply
justinjoboyle
Posts: 4
Joined: 2015/09/01 19:28:28

[SOLVED] Updating Java (newbie)

Post by justinjoboyle » 2015/09/03 19:27:35

Hi all! I have just recently installed CentOS on my little server box. I am in the process of transferring my servers from Windows Server to Linux/CentOS, and I'm running into a small problem.

I checked "Install java" when I was installing CentOS because I thought it would speed up the process. However, it installed Java 7, and I need to use Java 8 because our code uses a bunch of new features in Java 8.

What is the easiest way to update? I have tried "unininstalling" java and installing java 8 JRE, however "java -version" still outputs "1.7.0_75".

Any ideas? Thanks!
Last edited by justinjoboyle on 2015/09/04 02:05:17, edited 1 time in total.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Updating Java (newbie)

Post by gerald_clark » 2015/09/03 20:00:30

Some suggestions in
https://wiki.centos.org/HowTos
in the Misc section.

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Updating Java (newbie)

Post by AlanBartlett » 2015/09/03 22:19:24

I see that the java-1.8.0-openjdk-1.8.0.51-1.b16.el7_1.x86_64.rpm package is currently available from the updates directory.

Perhaps just try yum install java-1.8.0-openjdk . . .
Image 100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

justinjoboyle
Posts: 4
Joined: 2015/09/01 19:28:28

Re: Updating Java (newbie)

Post by justinjoboyle » 2015/09/04 02:05:03

Thanks for the replies everyone! I've got it working on my StackOverflow question, take a look at the recommended answer:

http://stackoverflow.com/questions/3238 ... ith-centos

Post Reply