First, make sure you have the Extras channel and run: yum install java-1.5.0-sun-devel (You can leave off -devel if you just want a JRE.) Then, type java -version And it should work.