3.5.4 Setting up Eclipse

In this stage, you set library paths, create a server runtime, and select the J2EE server.

Organization of this subsection
(1) Setting library paths
(2) Creating a server runtime
(3) Selecting the J2EE server

(1) Setting library paths

Set the following service platform library paths:

C:\Program Files\Hitachi\Cosminexus\CC\client\lib\j2ee-javax.jar
C:\Program Files\Hitachi\Cosminexus\jaxp\lib\csmjaxp.jar
C:\Program Files\Hitachi\Cosminexus\c4web\lib\hitjaxrpc.jar
C:\Program Files\Hitachi\Cosminexus\c4web\lib\hitc4web.jar

The service platform library path C:\Program Files\Hitachi\Cosminexus is the default installation directory of the service platform. If a directory that is not the default installation directory is specified during installation of the service platform, you must replace the default installation directory with the directory specified during installation.

The following shows the procedure for setting the library paths:

  1. From the Eclipse menu, select Window, and then Preferences.
    The Preferences dialog box appears.

    [Figure]

  2. In the left-pane tree view, select Java, Build Path, and then User Libraries.
    The User Libraries page appears in the right pane.

    [Figure]

  3. Click the New button.
    The New User Library dialog box opens.

    [Figure]

    Enter CosminexusSOAP in User library name, and then click the OK button.

    [Figure]

  4. On the User Libraries page, select CosminexusSOAP, and then click the Add External JARs button.
    The JAR Selection dialog box opens.

    [Figure]

  5. Select service-platform-installation-directory\CC\client\lib\j2ee-javax.jar, and then click the Open button.
    The j2ee-javax.jar library is added.
  6. Using the same procedure as above, add the following JAR files by clicking the Add External JARs button:
    • service-platform-installation-directory\jaxp\lib\csmjaxp.jar
    • service-platform-installation-directory\c4web\lib\hitjaxrpc.jar
    • service-platform-installation-directory\c4web\lib\hitc4web.jar

      [Figure]

  7. Click the OK button.
  8. Restart Eclipse.

(2) Creating a server runtime

Create a server runtime before you can operate the J2EE server. A server runtime is a collection of environment settings, such as the J2EE server installation destination. The following shows the creation procedure:

  1. From the Eclipse menu, select Window, and then Preferences.
    The Preferences dialog box appears.
  2. From the left-pane tree view, select Server, and then Runtime Environments.
    The Server Runtime Environments page appears in the right pane.

    [Figure]

  3. Click the Add button.
    The New Server Runtime Environment dialog box opens.
  4. In the tree view, select Cosminexus, and then Cosminexus J2EE.

    [Figure]

  5. Click the Finish button.

    [Figure]

  6. Confirm that Cosminexus J2EE was added to the Server runtime environments list, and then click the OK button.
    The settings are saved.

(3) Selecting the J2EE server

Select the J2EE server that you will operate from Eclipse. For the J2EE server selected here, you perform start and stop operations, or you deploy J2EE applications from Eclipse.

The following shows the setup procedure:

  1. From the Eclipse menu, select File, New, and then Other.
    The New dialog box appears.
  2. Select Server, and then Server, and then click the Next button.
    The New Server dialog box opens, displaying the Define a New Server page.

    [Figure]

  3. Specify the following settings:
    Item nameValue to be specified
    Select the server typeUnder Cosminexus, select J2EE server.
    Server nameYou do not need to specify this item because the server name on the J2EE Server page is used.
    Server runtime environmentSpecify the server runtime Cosminexus J2EE.
  4. Click the Next button.
    The J2EE Server page appears.

    [Figure]

  5. In the Remote Management Function area, from the Connection Host drop-down list, select the connection-destination host. If you are not logged in to the connection-destination host, click the Log in button.
    Enter admin in Administrator ID and Password, and then click the OK button.
    You are connected to Management Server Remote Management. The connection-destination J2EE server appears.
  6. Select the check box of the J2EE server to be used (MyServer).

    [Figure]

  7. Click the Finish button.
    The settings are saved.