4
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?
4
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?
2
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
.
If 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. – LiuYan 刘研 – 2011-06-26T19:16:42.450I am getting "Package jdk-6u26-linux-i586.rpm is not signed" -- any ideas? – Joseph Weissman – 2011-08-04T14:43:13.403