Install Glassfish 4 on Ubuntu 15.04

By Unknown | วันพฤหัสบดี, พฤษภาคม 07, 2558

1. Add Oracle Repository

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update

2. Install Oracle JDK 8

sudo apt-get install oracle-java8-installer

3. Setting "JAVA_HOME" Environment Variable

edit this file /etc/environment

sudo nano /etc/environment

add this line to the end of file

JAVA_HOME="/usr/lib/jvm/java-8-oracle"

reload file

source /etc/environment

4. Install Glassfish 4

download file and extract to your system

cd /tmp
wget 'http://download.java.net/glassfish/4.1/release/glassfish-4.1.zip'
unzip glassfish-4.1.zip
sudo mv glassfish4 /usr/share

5. Setting "PATH" for glassfish

edit file /etc/environment by append /usr/share/glassfish4/glassfish/bin to PATH="...". reload by source /etc/environment and test by run asadmin at your home directory


แสดงความคิดเห็น