(Article) Installing Glassfish on Ubuntu Linux
Article : Installing Glassfish on Ubuntu Linux
Successfully installed Glassfish server on Ubuntu 8.04 for my certification preparation. What haunts is that the 256 MB Laptop cannot uphold the heavy/lite glassfish server. I am thinking to install a more light weight Linux, may be xubuntu for running glassfish server and deploy example apps.
Following is the ultra-quick list of commands that will take you in no time installing Glassfish on Ubuntu 8.04 (Hardy Heron) Linux. Those in bold letters are the commands. Open a terminal and execute these in sequence.
- java -version // Check java version. It must be either Java 1.5 or Java 1.6. If not install Java by typing sudo apt-get install sun-java6-jdk. It asks your password, after you enter it, it will install Java 6.
- wget http://java.net/download/
javaee5/v2ur2/promoted/Linux/ // get the link of latest glassfish server jar for linux from https://glassfish.dev.java.glassfish-installer-v2ur2-b04- linux.jar net/public/downloadsindex.html - java -Xmx256m -jar glassfish-installer-v2ur2-b04-
linux.jar // Click Accept in the license window that opens - cd glassfish
- sudo chmod -R +x lib/ant/bin // Enter password
- lib/ant/bin/ant -f setup.xml //Run ant script
- cd bin //Go to the directory (usually bin) where asadmin command is available. You can find this by simple ls command or through GUI file xplorer
- ./asadmin //Run asadmin
- asadmin> start-database
- asadmin> start-domain domain1
- Type http://localhost:4848/ in browser and login as username: admin and password: adminadmin
- asadmin> exit // To shutdown the server, type this in the terminal window
Following is the screenshot of Glassfish server admin console. It comes with default derby database and very much intuitive. This will be of great aid to practice our EJB and Webservice examples and i am going to use it to the maximum to leverage maximum.
Click here to see the Screenshot
- guru's blog
- Login to post comments
