On this page

GlassFish is an open-source and world's first implementation of the Java Platform developed by Eclipse Foundation. It is a light-weight application server and supports different Java-based technologies like Enterprise JavaBeans, JPA, JavaServer Faces, JMS, and many more. GlassFish comes with a simple and easy to use administration console with an update tool for updates and add-on components.

In this tutorial, we will explain how to install GlassFish on Debian 10 with Nginx as a reverse proxy.

Requirements

A server running Debian 10.

A root password is setup to your server.

Getting Started

Before starting, you will need to update your system with the latest version. You can do this by running the following command:

apt-get update -y apt-get upgrade -y

Once your server is updated, restart your server to apply the changes.

Installing Java

GlassFish requires java version 8 to be installed on your server. So, you will need to remove the Java if you have any other Java version installed on your system.

You can remove the Java version 11 with the following command:

apt-get remove openjdk-11-jre-headless

Next, you will need to download the java version 8 from their official website. Once the download is completed, extract the downloaded file to the /usr/lib/jvm directory with the following command: