install glassfish v2 ubuntu

GlassFish is an open-source application server project started by Sun Microsystems for the Java EE platform and now sponsored by Oracle Corporation. [ Wiki ]

q:.> download glassfish-installer-v2ur2-b04-linux.jar ( hasil download letakkan di /home/saifi/Downloads)
*) saifi = user login pada Ubuntu.

q:.> install glassfish, buka terminal
semisal instalasi mau diletakkan di /usr/local/ maka copy-kan file glassfish ke /usr/local

cp /home/saifi/Downloads/glassfish-installer-v2ur2-b04-linux.jar /usr/local/

untuk instalasi masuk ke /usr/local tempat glassfish yang baru di-copykan

cd /usr/local/
java -Xmx1024m -jar glassfish-installer-v2ur2-b04-linux.jar

tekan enter , maka akan keluar window License Agreement, scroll ke bawah,, maka tombol Accept akan aktif, kemudian klik tombol Accept.

setelah sukses, maka folder glassfish akan terbentuk pada /usr/local/glassfish

masuk ke folder glassfish.

cd glassfish

kemudian kasih hak akses “execute” untuk file ant pada lib/ant/bin/ant

chmod a+x lib/ant/bin/ant

Kemudian baru jalankan perintah ini.

lib/ant/bin/ant -f setup.xml

Pada perintah di atas, glassfish akan melakukan proses create domain.

q> Menjalankan service start-domain.
untuk menjalakan service start-domain jalankan perintah ini
Buka terminal baru dengan shortcut Ctrl+Alt+T

/usr/local/glassfish/bin/asadmin start-domain domain1

buka browser, masukkan alamat URL http://localhost:8080

q>Untuk men-stop service glassfish

/usr/local/glassfish/bin/asadmin stop-domain domain1

Published by

saifiahmada

Begin a big Process with a bit trying

3 thoughts on “install glassfish v2 ubuntu”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s