|
Aug
31
|
Cay Horstmann shows how easy it is to get GlassFish running on Ubuntu Server, if you're running the Desktop version here are the simple steps you need to follow :
1. Install Sun's Java SE 5 JDK (by default Ubuntu Workstation has java-gcj)
Follow these instructions (for the JRE) - just be sure to select the JDK package as well as the JRE.
When you're done, check it worked :
sharps-AT-sharps-laptop:~$ java -version java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) sharps@sharps-laptop:~$
2. Install Apache Ant
As with J2SE 5.0, Debian packages exist for Ant so you can install via the Synaptics Package manager (or apt-get).
3. Download GlassFish
Choose your version and download. Note - we don't have Debian packages for GlassFish - if you'd like to see that change (and would be willing to help) please get in touch (or leave a comment).
4. Install and configure GlassFish
java -Xmx256m -jar TheThingYouJustDownloaded.jar cd glassfish ant -f setup.xml
[Note with V2 - there are extra config steps if you want a clustered environment - see here]
5. Start GlassFish
bin/asadmin start-domain
6. Confirm it's running
Login to the admin console : http://localhost:4848
Update
Step 2 is a little redunANT as Ant is installed as part of GlassFish - under the bin directory there's a shell script called asant which invokes the private copy of ant.
Technorati Tags: glassfish, debian, ubuntu, jdkComments are closed for this entry.






