How to install Sun's JDK on CentOS?
12,661
Oracle no longer supports JDKs earlier than 7, however, you can still download them from here. For the latest version, go here.
Choose your version and architecture. You want the Linux version. Get the .rpm.bin version.
Using the root account, or the sudo command, run the file you downloaded (chmod it if necessary). This will extract & install the Java packages.
You are done. You can run java -version
in your terminal to verify. Also take a look at CentOS wiki about SunJDK
You can see what got installed by running rpm -qa | grep java
.
Related videos on Youtube
Author by
Jay
Updated on September 17, 2022Comments
-
Jay over 1 year
I having difficult time installing Sun's JDK on CentOS. The default installing with "yum" is "openJDK", but I need to install Sun's JDK. Is there easy instruction out there I can use or any suggestion?
-
LiuYan 刘研 almost 13 yearsIf you don't want JavaDB installed, try
unzip jdk-6u26-linux-i586-rpm.bin jdk-6u26-linux-i586.rpm
, thenrpm -ivh jdk-6u26-linux-i586.rpm
, this will install only JDK. -
Joseph Weissman over 12 yearsI am getting "Package jdk-6u26-linux-i586.rpm is not signed" -- any ideas?