This works for me:
yum install ftp://rpmfind.net/linux/centos/6.5/os/i386/Packages/java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.i686.rpm
Result
Setting up Install Process
java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.i686.rpm | 27 MB 00:02
Examining /var/tmp/yum-root-19c9mu/java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.i686.rpm: 1:java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.i686
Marking /var/tmp/yum-root-19c9mu/java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.i686.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package java-1.7.0-openjdk.i686 1:1.7.0.45-2.4.3.3.el6 will be installed
...
I'm missing something?
With JDK 1.7
# yum install java-1.7.0-openjdk
OpenJDK is in default updates
repository
Name : java-1.7.0-openjdk
Arch : x86_64
Epoch : 1
Version : 1.7.0.51
Release : 2.4.4.1.el6_5
Size : 26 M
Repo : updates
Summary : OpenJDK Runtime Environment
URL : http://openjdk.java.net/
License : ASL 1.1 and ASL 2.0 and GPL+ and GPLv2 and GPLv2 with exceptions and LGPL+ and LGPLv2 and MPLv1.0 and MPLv1.1 and Public Domain and W3C
Description : The OpenJDK runtime environment.