

$ sudo yum install java-1.7.0-openjdk-devel Loaded plugins: fastestmirror, refresh-packagekit Setting up Install Process Loading mirror speeds from cached hostfile * base: * epel: * extras: * nux-dextop: li.nux.ro * updates: Resolving Dependencies -> Running transaction check -> Package java-1.7.0-openjdk-devel.x86_64 1:1.7.0.85-2.6.1.3.el6_7 will be installed -> Processing Dependency: java-1.7.0-openjdk = 1:1.7.0.85-2.6.1.3.el6_7 for package: 1:java-1.7.0-openjdk-devel-1.7.0.85-2.6.1.3.el6_7.x86_64 -> Running transaction check -> Package java-1.7.0-openjdk.x86_64 1:1.7.0.85-2.6.1.3.el6_7 will be installed -> Finished Dependency Resolution Dependencies Resolved = Package Arch Version Repository Size = Installing: java-1.7.0-openjdk-devel x86_64 1:1.7.0.85-2.6.1.3.el6_7 updates 9.4 M Installing for dependencies: java-1.7.0-openjdk x86_64 1:1.7.0.85-2.6.1.3.el6_7 updates 26 M Transaction Summary = Install 2 Package(s) Total download size: 35 M Installed size: 126 M Is this ok : y Downloading Packages: (1/2): java-1.7.0-openjdk-1.7.0.85-2.6.1.3.el6_7.x86_64. If you want, you can remove existing installed java on the system using the below steps: Note: This step is optional. Uninstall existing JDK versions You can have multiple version of JDK installed on machine but you can use one at a time. Oracle Java 7 Prerequisites You are admin or non-admin user with sudo rights.

Now, we have many different platform and versions of java available, for now we will be installing Java SE(Standard Editions) and below version: 1. Java is open source, platform independent programming language. This tutorial will guide you to install JDK (Java Development Kit) on CentOS 6.5 (also 5,7).
