Here are some notes that I wrote about 6 months ago about my experience in installing Glass fish on Ubuntu server.
BTW: You dont need NetBeans. Once you are setup you can browse to the admin console of Glassfish. (
http://hostname:4848)
Install Sun Java JDK 5.0
1.At the command line
2.Download and install the Sun Java JDK from the remote repository,
Code:
sudo apt-get install sun-java5-jdk
(must have the multi universe repositories setup).
3.APT will now download the required packages and dependences for you and install them.
4.The installer will ask you to accept the licence agreement.
Install Glassfish V2
1.Download glassfish
Code:
wget http://java.net/download/javaee5/v2ur2/promoted/Linux/glassfish-installer-v2ur2-b04-linux.jar
Download this file to the parent folder that you want to install glassfish too (e.g. /user/local/).
2.Execute the installer
Code:
sudo java -Xmx256m -jar glassfish-installer-v2ur2-b04-linux.jar
accept the licence agreement.
3.Setup the permissions for the glassfish ant binaries and run the setup file.
Code:
cd /usr/local/glassfish
chmod -R +x lib/ant/bin
lib/ant/bin/ant -f setup.xml
4.Starting stopping glassfish
Code:
cd [GlassFishHome]/bin
./asadmin start-domain domain1
./asadmin stop-domain domain1
Let me know how you get on.
Bookmarks