4.2 GreenPages set up
Prev | 4. The Web Module | Next

## 4.2 GreenPages set up

Before beginning, configure the development environment to work with the application. In the case of GreenPages this means Maven and Eclipse.

### Setting up Eclipse (STS)

The following sections are most easily followed in the Java perspective (not, for example, the Java EE perspective). If not already in the Java perspective, switch to the Java perspective in SpringSource Tool Suite using the Open Perspective menu:

In this step create a reference to the Web Server instance that the GreenPages application integrates with (this may already be created).

In STS open Preferences → Server → Runtime Environments. Select Add… to create a new Web Server runtime environment. In the dialog that opens, select the Virgo Web Server (runtime) v2.1 and check the box to Create a new local server. When complete, press Next.

In the next dialog, set the Virgo Web Server installation directory field to the value of `$VWS_HOME` and check that the JRE: option is set to Java 1.6 or above. This may not be the workbench default. When complete, press Finish.

After returning to the Preferences window, press OK to return to Eclipse. The Servers view has opened and now shows an instance of Virgo Web Server in it.

There is also a Servers project, in which the server is listed.

Prev | Up | Next
4. The Web Module | Home | 4.3 The controller