Sunday, April 13, 2008

Glassfish on Ubuntu

Glassfish v2ur1 was surprisingly easy to install on Ubuntu 7.10 server version on an x386 desktop. Here's the breakdown of the steps...

1.) Install JDK 5 or later on Ubuntu.

  sudo apt-get install sun-java5-jdk
2.) 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-1.5.0.13)

4.) Run:
  1.    % java -Xmx256m -jar filename.jar
    This command will unbundle GlassFish and create a new directory named 'glassfish' rooted under the current directory.
  2. 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
  3.  % cd glassfish
  4. % chmod -R +x lib/ant/bin
    % lib/ant/bin/ant -f setup.xml 

No comments: