Setting up the workspace

Before starting to set up your workspace, ensure that you have the necessary software installed, as is described in Software required for developing JViews Web applications. The examples used here are illustrated with Luna Eclipse™ .

Creating your workspace

To set up your workspace:
  • Create a folder, for example, C:\Rogue Wave\jviews-web-samples and select it as your workspace when you start Eclipse™ .
Eclipse
Workspace Launcher window showing folder name.

Configuring the Tomcat server

Rogue Wave® JViews is shipped with a Tomcat server.
To configure Tomcat as the default Web application server of your workspace:
  1. Start Eclipse and open the workspace C:\Rogue Wave\jviews-web-samples (or the folder you chose when creating your workspace).
  2. Select Windows>Preference>Server>Runtime Environments and click Add.
    Eclipse
Preferences window showing Runtime Environments option selected.
  3. Click Add.
    New
Server Runtime Environment window showing Apache Tomcat version 7
selected.
  4. Select Apache Tomcat v7.0, click Next and then Browse to the location of the Tomcat installation directory.
    The following figure shows the Tomcat installation directory as shipped with JViews. The location of this directory might vary depending on the version of your product. You must browse to find the directory appropriate to your product and version.
    New
Server Runtime Environment window with Tomcat installation directory
displayed.
    The Tomcat installation directory that is shipped with the JViews product might vary depending on the version of your product.
  5. Click Finish and then OK.

Configuring the JViews JSF library

When developing JViews JSF applications you must use the following jars and these must also be distributed with your Web applications.
To create a customized user library for the jars required when developing JViews JSF applications:
  1. Start Eclipse and open the workspace C:\Rogue Wave\jviews-web-samples (or the folder you chose when creating your workspace).
  2. Select Windows>Preference>Java>Build Path>User Libraries.
    Eclipse
Preferences window showing User Libraries selected.
  3. Click New and enter a user library name of your choice, for example, JViews Framework and then click OK.
    Eclipse
New User Library window showing JViews Framework entered as a user
library name.
  4. Click Add JARs and add all the jars shown listed under JViews Framework (or the user library name you have chosen) and click OK.
    Eclipse
Preferences window displaying jars to be added.
    The number of jars and their directory paths might vary depending on your version of JViews.