Installing Java 1.8 and Tomcat 8 in Centos 7

I have been setting up our servers in Amazon AWS and found that installing JDK is not as straightforward as I thought it would be 🙂

I had to do some googling before I could settle down on a method to setup and run tomcat 8 using jdk 1.8 in centos. Putting the steps below for reference to anyone who is trying to achieve the same in AWS: Keep reading