scwook@debian:~/Download# java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
If you need to install the new Java, Please refer to following post
Glassfish V3 Installation
Glassfish V3 can be downloaded from the Oracle web page. Download the Linux/Unix/Mac Installer.
Run the file as superuser.
root@debian:/Downloads# bash ogs-3.1.2.2-unix.sh
When installation menu show up, click next.
Select the Typical Installation and click next.
Change the Installation Directory to /opt/glassfish3 and click next.
Click next.
Click next to start installation.
Set the administrator password and leave the default settings. click next.
Installation is completed. Click exit.
In order to test, try poining your browser to localhost or server ip address.
http://localhost:4848 or http://[Server IP Address]:4848
Glassfish V4 Installation
Download the Java EE 7 Full Platform form the glassfish wep site.
Extract the file and run the glassfish demon.
root@debian:~# unzip glassfish-4.1.1.zip -d /opt/
root@debian:~# cd /opt/glassfish4/bin/
root@debian:/opt/glassfish4/bin# ./asadmin start-domain
Waiting for domain1 to start ...
Successfully started the domain : domain1
domain Location: /opt/glassfish4/glassfish/domains/domain1
Log File: /opt/glassfish4/glassfish/domains/domain1/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.
In order to test, try poining your browser to localhost or server ip address.
http://localhost:4848 or http://[Server IP Address]:4848
If need, the admin password can be modified by change-admin-password command.
root@debian:/opt/glassfish4/bin# ./asadmin change-admin-password
Enter admin user name [default: admin]>admin
Enter the admin password> [Just remain empty]
Enter the new admin password> [New Password]
Enter the new admin password again> [New Password]