1.) Install JDK 5 or later on Ubuntu.
sudo apt-get install sun-java5-jdk2.) At this point I created an /opt/app directory and copied the glassfish installer to /opt/app to expand and execute.
3.) Set JAVA_HOME to the JDK you have installed on your system. (i.e /usr/lib/jvm/java-1.5.0-sun-184.108.40.206)
% java -Xmx256m -jar filename.jarThis command will unbundle GlassFish and create a new directory named 'glassfish' rooted under the current directory.
- If you want to run glassfish as an app user this is the point to chown -R
: glassfish. Then run steps #3 and #4 as the
% cd glassfish
% chmod -R +x lib/ant/bin
% lib/ant/bin/ant -f setup.xml