Download Red Hat Enterprise Linux
Create a Virtual Machine using the .ISO DVD downloaded by clicking on the "RedHat Enterprise Linux" download button
Create the root and administrator passwords (using a strong password, e.g. small, capital letters and numbers)
Select the base environment "Server with GUI" and choose additional options e.g. Java, Development Tools, KDE, etc.
After the installation, you should see the following screen with the login GUI.
The next step is important for installing packages under RedHat: open a terminal and register your account using the following command.
# subscription-manager register --username <username> --password <password> --auto-attach
If it does not work, run subscription-manager
# subscription-manager register
# subscription-manager attach --auto
# su- # yum repolist all
Source: https://access.redhat.com/solutions/253273
Install some packages e.g. git and svn
#su
[root@localhost duy]# yum install subversion git
Install Apache Tomcat on RedHat 7
References