Hitachi

JP1 Version 12 JP1/Navigation Platform Development Guide


3.1 Setting up Eclipse

The following shows the procedure for setting up Eclipse.

Important

Use JDK version 11. However, you can use JDK version 5, 6, 7, or 8 to create libraries that are to be referenced from plugins and custom windows.

By setting up Eclipse according to the following procedure, you can use JDK version 11, which is included in JP1/Navigation Platform for Developers.

  1. Copy the archive of Eclipse to any folder from the CD-ROM of JP1/Navigation Platform for Developers.

  2. Extract the copied archive to a folder other than the Navigation Platform for Developers installation directory.

    This folder is referred to as the Eclipse installation directory hereafter.

  3. Add the following directory to the Path system environment variable:

    Eclipse-installation-directory\plugins\directory-beginning-with-org.apache.ant_\bin;

  4. Edit the eclipse.ini file directly under the Eclipse installation directory.

    Information to add 1

    Add the following setting on a line before -vmargs:

    -vm

    Navigation-Platform-for-Developers-installation-directory\PP\uCPSB\jdk\bin\javaw.exe

    Information to add 2

    Add the following setting on a line after -vmargs:

    -XX:MaxMetaspaceSize=128-MB-or-greater-value

    Example:

    -vm

    C:\Program Files\Hitachi\HNP\PP\uCPSB\jdk\bin\javaw.exe

    -vmargs

    -XX:MaxMetaspaceSize=128m

  5. Execute eclipse.exe and then make sure that Eclipse starts.

    At this time, make sure that a path under the Navigation Platform for Developers installation directory is not specified for the workspace.

Note:

When you open a file in Eclipse, you might find that Japanese characters are garbled. In such a case, try the following procedure to fix the garbled characters:

  1. From the menu in Eclipse, select Window and then Preferences to open the Preferences window.

  2. In the left pane of the Preferences window, select General, Appearance, and then Colors and Fonts. In the right pane of the Preferences window, select Java and Java Editor Text Font, and then click the Edit button to open the Font dialog box.

  3. In the Font dialog box, specify a font that supports Japanese characters, and then click the OK button.

  4. In the Preferences window, click the OK button to apply your change.