I believe centOS uses yum or aperture as it's installer.
Try running "yum install open-jre", or alternatively, "yum install open-jdk", which is the development kit, but also has JRE as a dependency.
From the sounds of it, you're probably running an RS bot, right? You'll need JDK to compile...