| <html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Obtaining GreenPages</title><meta content="DocBook XSL Stylesheets V1.76.0" name="generator"><link rel="home" href="index.html" title="A Guide to the GreenPages Sample"><link rel="up" href="ch02.html" title="Chapter 2. Installing and Running GreenPages"><link rel="prev" href="ch02.html" title="Chapter 2. Installing and Running GreenPages"><link rel="next" href="ch02s03.html" title="Building and Installing GreenPages"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table summary="Navigation header" width="100%"><tr><td align="left" width="20%"><a accesskey="p" href="ch02.html">Prev</a> </td><th align="center" width="60%"> </th><td align="right" width="20%"> <a accesskey="n" href="ch02s03.html">Next</a></td></tr></table><hr></div><div class="section" title="Obtaining GreenPages"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="installing.greenpages.obtaining"></a>Obtaining GreenPages</h2></div></div></div><p>This document provides instructions for building the complete GreenPages application and running it in Virgo Tomcat Server. |
| </p><p>To get the completed GreenPages application, including tests and explanatory skeleton parts: |
| </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>download the latest Zip file from </p><pre class="programlisting">http://eclipse.org/virgo/download/</pre></li><li class="listitem"><p>extract all the files from the Zip file to a convenient directory (preserving the directory structure).</p></li></ol></div><p> |
| </p><p>To extract the files on Windows: |
| </p><pre class="programlisting">prompt> mkdir c:\springsource\samples |
| prompt> cd c:\springsource\samples |
| prompt> jar xf c:\path\to\greenpages-2.5.0.RELEASE.zip |
| prompt> set GREENPAGES_HOME=c:\springsource\samples\greenpages-2.5.0.RELEASE</pre><p> |
| </p><p>To extract the files on Unix systems: |
| </p><pre class="programlisting">prompt$ mkdir -p /opt/springsource/samples |
| prompt$ cd /opt/springsource/samples |
| prompt$ unzip /path/to/greenpages-2.5.0.RELEASE.zip |
| prompt$ export GREENPAGES_HOME=/opt/springsource/samples/greenpages-2.5.0.RELEASE |
| </pre><p> |
| </p><p>The environment variable <code class="literal">GREENPAGES_HOME</code> set here is not used by the projects, but is used as a shorthand |
| in the instructions that follow. |
| </p><p>The GreenPages Zip file contains several directories with names that start <code class="literal">greenpages</code>. |
| They contain the completed application which can be built and tested (as described in the next section). |
| </p></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="ch02.html">Prev</a> </td><td align="center" width="20%"><a accesskey="u" href="ch02.html">Up</a></td><td align="right" width="40%"> <a accesskey="n" href="ch02s03.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%"> </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> </td></tr></table></div></body></html> |