This tutorial will show you how to install GlassFish 4 and JDK (Java SE Development Kit) on a VPS with Ubuntu 14.04 installed on it.
GlassFish is an open source application server that implements the newest features in the Java EE 7 platform. GlassFish 4 requires JDK version 1.7 installed on your Linux VPS.