Hitachi

JP1 Version 12 JP1/Navigation Platform Development Guide


3.3.2 Creating and configuring libraries

The following describes a note on creating libraries, and how to configure a library you created. Also described is how to use Eclipse to perform reference resolution of the configured library.

Organization of this subsection

(1) Note on creating libraries

To create a library that references APIs provided by Navigation Platform, specify the following library in the class path, and then build the library.

Navigation-Platform-installation-directory\syslib\ucnpsys.jar

(2) Configuring a library

To configure a library:

  1. Store the created library in the location indicated in 3.3.1 Location to place libraries.

    You do not need to perform the following steps if you want to use the library only with plugins.

    To share the library in the whole J2EE server, proceed with the next step.

  2. Add the absolute path of the library to the class path specification for the J2EE server.

  3. Restart Navigation Platform.

To share the library in the whole J2EE server, perform steps 1 to 3 on the J2EE server in an execution environment, in addition to the J2EE server in a development environment.

(3) Project reference resolution

To perform reference resolution for an Eclipse project, use the following procedure to specify the added library JAR file:

  1. In the Eclipse Project Explorer view, right-click the project.

    A menu opens.

  2. Click Properties.

  3. In the left pane, click Java Build Path.

  4. In the right pane, click the Libraries tab.

  5. Click the Add JARs button, and then specify the JAR file you want to add.