Install Glassfish and JDK on Ubuntu (apt-get)

I have always been using Microsoft operation system “Windows”. Great fan of Windows XP thou. Loved it, believed it. It was better than Vista or Win 7 (that’s my personal view). By profession, I need lots of other applications to be setup in PC. Setting up JDK, Netbeans on window XP is easy with just few clicks. But I switch frequently to Linux platform to do the job.

In Linux, we can always perform install in two ways (if there are others please, let me know). First is apt-get install filename

apt-get install glassfish

You will be asked, if you want to install extra dependency. Just say yes and continue. Now, now, have some patience. It’s not like installation will be over in few seconds. After all files are downloaded then next is :

dpkg --configure glassfish

You will see terms / license condition etc. Say, I accept and continue and few moment later it’s all done. To check whether glassfish is working or not, you can always use port 80.

http://localhost:8080/

or, to gain access to the server admin console

http://localhost:4848/
username: admin
password: adminadmin

For JDK install

apt-get install sun-java6-jdk sun-java6-jre

All necessary dependency will be download after you say yes. Till then have a cup of coffee or just sit back and relax. By defalut JDK will be installed at /usr/lib/jvm/ Now final act, you need to append a path to the profile.

sudo gedit /etc/profile

add >>

export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.06"

We will look into how install JDK, IDE and Glassfish manually in next post.

Leave a comment

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.