Hitachi

Hitachi Application Server V10 User's Guide (For Windows® Systems)


7.4.7 Setting up Eclipse

If you are not using the Eclipse supplied with Application Server for Developers, install the Eclipse that you have prepared by yourself on the machine, and then edit the eclipse.ini file.

Prerequisites

Intended users

Procedure

  1. Create a directory in which to install Eclipse.

    Create a directory in which to install Eclipse and a directory (work directory) to be used temporarily for the purpose of installing Eclipse.

  2. Obtain the Eclipse archive file.

    Obtain one of the following archive files from the Eclipse.org download site:

    In Windows x86: eclipse-jee-luna-SR1a-win32.zip

    In Windows x64: eclipse-jee-luna-SR1a-win32-x86_64.zip

  3. Extract the Eclipse archive file.

    Extract the obtained Eclipse archive file to the work directory created in step 1.

  4. Copy the extracted Eclipse file to the Eclipse installation directory.

    Copy the Eclipse file extracted in step 3 to the Eclipse installation directory created in step 1.

  5. Delete the work directory.

    Reference note

    If you apply a language pack, use the one appropriate to the downloaded version.

  6. Copy the following link files to installation_directory_for_Eclipse/eclipse/dropins:

    • installation_directory_for_Application_Server_for_Developers/common/dropins/com.cosminexus.common.plugin.link

    • installation_directory_for_Application_Server_for_Developers/plugins/dropins/com.cosminexus.plugin.link

  7. Copy eclipse.ini, which is located directly under installation_directory_for_Eclipse/eclipse, and then save the file to any location of your choice.

    You will use the saved eclipse.ini when you have to revert Eclipse to the state before setup.

  8. Edit eclipse.ini, which is located directly under installation_directory_for_Eclipse/eclipse.

    Examples of how to edit eclipse.ini are shown below.

    Example of how to edit eclipse.ini (in Windows x86)
    -vm
    installation_directory_for_Application_Server_for_Developers/jdk/bin/javaw.exe
    -startup
    plugins/org.eclipse.equinox.launcher_1.3.0.v 20140415-2008.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20140603-1326
    -product
    org.eclipse.epp.package.jee.product
    --launcher.defaultAction
    openFile
    --launcher.XXMaxPermSize
    256M
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    --launcher.appendVmargs
    -vmargs
    -Dosgi.requiredJavaVersion=1.6
    -Xms40m
    -Xmx512m
    
    -DHJAVAEE_HOME=installation_directory_for_Application_Server_for_Developers#
    

    #:

    As an environment variable, specify installation_directory_for_Application_Server_for_Developers.

    Example of how to edit eclipse.ini (in Windows x64)
    -vm
    installation_directory_for_Application_Server_for_Developers/jdk/bin/javaw.exe
    -startup
    plugins/org.eclipse.equinox.launcher_1.3.0.v 20140415-2008.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x64_1.1.200.v20140603-1326
    -product
    org.eclipse.epp.package.jee.product
    --launcher.defaultAction
    openFile
    --launcher.XXMaxPermSize
    256M
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    --launcher.appendVmargs
    -vmargs
    -Dosgi.requiredJavaVersion=1.6
    -Xms40m
    -Xmx512m
    
    -DHJAVAEE_HOME=installation_directory_for_Application_Server_for_Developers#
    

    #:

    As an environment variable, specify installation_directory_for_Application_Server_for_Developers.

  9. Specify the -clean option, and then start Eclipse.

    installation_directory_for_Eclipse/eclipse/eclipse.exe -clean
  10. From the Eclipse menu, select Help > About Eclipse.

    The About Eclipse dialog box appears.

  11. Click the Installation Details button.

    Confirm that the following programs are displayed in the Eclipse Installation Details dialog box.

    • Application Development Tools

    • Sharing Library Plug-in

  12. After confirming that the programs above are displayed, click the Close button.