Glassfish V3 - Getting Started, Setting up the Environment

Sreeni gave me instructions on how to get started and setup with Glassfish V3. It worked like a charm so I thought I would post it here. Thanks Sreeni!

1. Download and install Java SE 6.latest:
http://java.sun.com/javase/downloads/index.jsp
• Set the system/user variable JAVA_HOME=C:\\Program Files\\Java\\jdk1.6.0_04
• Add %JAVA_HOME%\\bin to your system path.

2. Download and install SVN:
http://downloads.open.collab.net/collabnet-subversion.html
http://wiki.glassfish.java.net/attach/V3BrownBags/GFV3Intro2svn.pdf
• Add the svn directory to your system path.

3. Download and install Maven2:
http://maven.apache.org/download.html
• Add the system/user variable M2_HOME
• Add $M2_HOME/bin directory to your system path.
• Type the following:
mvn –version
You should see: Maven version: 2.0.8
http://wiki.glassfish.java.net/attach/V3BrownBags/GFv3Intro2Maven2.pdf

4. Checkout code:
svn checkout https://svn.dev.java.net/svn/glassfish-svn/trunk/v3

5. Build:
cd ${GFSRCDIR}/v3
mvn -U install

6. Install app server:
Expand glassfish.zip $GFv3\\v3\\distributions\\glassfish\\target\\glassfish.zip

7. Start app server
cd /glassfish/bin
./asadmin start-domain

For additional info.
http://wiki.glassfish.java.net/Wiki.jsp?page=V3FullBuildInstructions

Comments:

Nice Blog!

Posted by Jane on February 03, 2008 at 08:28 PM EST #

Agreed nice Blog! Great to have you back.

Posted by Tom Kincaid on February 04, 2008 at 08:12 AM EST #

i think that the repository don't accept anonymous access. i am stuck in the 4th step and can't get the code :( what to do please? (i am using Netbeans)

Posted by KhaledE on May 28, 2008 at 12:24 PM EDT #

KhaledE,
You will need a java.net account. It is free to create. Then you can complete the 4th step with
svn checkout https://glassfish-svn.dev.java.net/svn/glassfish-svn/trunk/v3 \\
glassfish-v3-trunk --username YOUR_JAVANET_USERNAME

For more info see,
http://jpz-log.info/archives/2008/06/14/building-glassfish-v3-from-svn/

Posted by Nitya Doraisamy on July 20, 2008 at 03:16 PM EDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Jennifer Chou

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today