How To Install GlassFish on Windows


1. Download GlassFish

Download the installation jar for GlassFish. I went with GlassFish V2, since this is the latest stable release, though I think this technique will work with any version listed on the download page.

2. Install it

The GlassFish V2 Installation instructions show how to install it once download is complete. The problem with the GlassFish installer is that it does not register as a service with Windows, so once you log out, the GlassFish instance will terminate.

3. Register as a Service.

There are a few ways of doing this. The Hard Way, or my favourite the Easy Way. Once the service is registered, GlassFish will continue to run once you log out, and can be controlled through the Services applet from Control Panel, though continued use of asadmin is recommended.

Alternatively, use Ubuntu, where you can install GlassFish as easy as:

sudo apt-get install glassfish

Ubuntu wins again :-)

About these ads

Tags: , ,

5 responses to “How To Install GlassFish on Windows”

  1. Mohanjith says :

    That was a good one, give one more reason to switch to Ubuntu

  2. Nadoiz says :

    i installed GlassFish in ubuntu as simple as clicking it in the synaptic and then was only work with the netbeans … now ill try this in windows ( thx to my work)

  3. jabra says :

    This steps did not even gave something useful.

  4. fred says :

    Hi,
    Can you tell me how install Glassfish v3 as a service ?
    Thank you for yours responses.
    fred

  5. Jaime says :

    could you post here about windows?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 150 other followers

%d bloggers like this: