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!
[SOLVED] Updating Java (newbie)
-
- Posts: 4
- Joined: 2015/09/01 19:28:28
[SOLVED] Updating Java (newbie)
Last edited by justinjoboyle on 2015/09/04 02:05:17, edited 1 time in total.
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
- AlanBartlett
- Forum Moderator
- Posts: 9345
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
Re: Updating Java (newbie)
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 . . .
Perhaps just try yum install java-1.8.0-openjdk . . .
100% Linux and, previously, Unix. Co-founder of the ELRepo Project.
-
- Posts: 4
- Joined: 2015/09/01 19:28:28
Re: Updating Java (newbie)
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
http://stackoverflow.com/questions/3238 ... ith-centos