How to install Java SDK on CentOS? -


i have centos 5, don't know steps install java sdk on linux.

where download rpm file , can next install that?

then need install tomcat.

or there ready-made package all?

the following command return list of packages directly related java. in format of java-<version>.

$ yum search java | grep 'java-' 

if there no available packages, may need download new repository search through. suggest taking @ dag wieers' repo. after downloading it, try above command again.

you see @ least 1 version of java packages available download. depending on when read this, lastest available version may different.

java-1.7.0-openjdk.x86_64 

the above package alone install jre. install javac , jdk, following command trick:

$ yum install java-1.7.0-openjdk* 

these packages installing (as dependencies):

java-1.7.0-openjdk.x86_64 java-1.7.0-openjdk-accessibility.x86_64 java-1.7.0-openjdk-demo.x86_64 java-1.7.0-openjdk-devel.x86_64 java-1.7.0-openjdk-headless.x86_64 java-1.7.0-openjdk-javadoc.noarch java-1.7.0-openjdk-src.x86_64 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -