This is really a set of notes for me so I don’t forget all this in the future, but hopefully might help others.
If you look at the Railo wiki on github about this, it gives you great instructions about 6, but I found my experience slightly different for 7.
These are the steps to install JRE from Oracle on Centos 64bit; (for the purposes of this post, this is Version 7u25)
- Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html
- Look for the JRE Download Link
- Save the jre-7u25-linux-x64.rpm to your local machine
- Upload it to your root or home folder on the server
- Assuming you’re logged in via SSH, run:
rpm -i jre-7u25-linux-x64.rpm
- Shut down railo:
- Backup / rename the old JRE:
cp -R /opt/railo/jdk/ /opt/railo/jdk.bak
rm -f /opt/railo/jdk
- Find the newly installed .rpm – hint, probably:
- Rename to:
- Now, you can symlink this version to the Railo install:
ln -s /usr/java /opt/railo/jdk
- Restart Railo:
- Login to Railo Server Admin and double check the JRE version running on the front page.
Thanks to Scott at Viviotech for the hint about the .rpm and symlinking!