Do you want to run the latest and greatest software? It looks like Synaptic has Glassfish version 2 which is an entire major version out of date.
Just for the record: I love Ubuntu and their (well, Debian's) package management system. However, for any Java applications, I prefer to do manual installations. So, my Maven, Eclipse, Tomcat, Glassfish, etc. were all done through manual installs for the newest version... and because sudo apt-get install
winds up throwing the app in some weird place and can have unexpected behavior.
Here is how you can do a manual install...
- Download Glassfish:
wget http://download.java.net/glassfish/v3/nightly/latest-glassfish.zip
- Extract the archive anywhere on your filesystem
- Inside your IDE such as Netbeans or Eclipse, setup a new server and point it at where you extracted the file
- It's also useful to add a new environment variable to ~/.bashrc file, which will make it easier to start the server from the command-line, e.g.
$GLASSFISH_HOME/bin/asadmin start-domain domain1
Another cool thing to try, if you're into maven, is to use the maven-embedded-glassfish-plugin. It's a clean way to get a web app up and running and not need to manually install glassfish and not even have to use an IDE.
You might also try asking this question at superuser.com if you really want to get it working with Synaptic.