0

I want to install JAVA on centOs. I followed the following post but its for openJDK. What i want to install is the Oracle version of it.

Then i followed the this article, and was unable to add the path as shown in point 10 of the article.

I think i am looking at the wrong resources to install java on CentOS, therefore can someone please help me install it by giving me steps.

Community
  • 1
  • 1
Illep
  • 16,375
  • 46
  • 171
  • 302
  • I would give it a try this http://askubuntu.com/a/55960/18075 It is for ubuntu installation but I think you can install it on centos quite similar... – ibrahim May 10 '14 at 08:26

1 Answers1

2

Use the following steps:

Download the installation package (see https://stackoverflow.com/a/10959815/3618339):

wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/jdk-7u55-linux-x64.rpm

Install the package:

rpm -Uvh jdk-7u55-linux-x64.rpm

That's all you need.

Community
  • 1
  • 1
Torino
  • 588
  • 2
  • 9