Hitachi

 Hitachi Application Server V10 ユーザーズガイドWindows®用)


7.4.10 Eclipseをセットアップする

Application Server for Developersに同梱されているEclipseを使用しない場合は、自分で用意したEclipseをインストールしてeclipse.iniファイルを編集します。

前提条件

想定ユーザー

操作手順

  1. Eclipseをインストールするためのディレクトリーを作成します。

    Eclipseをインストールするディレクトリー、およびEclipseのインストールのために一時的に使用するディレクトリー(作業用ディレクトリー)を作成します。

  2. Eclipseのアーカイブファイルを入手します。

    次に示すアーカイブファイルをEclipse.orgのダウンロードサイトから入手してください。

    Windows x86の場合:eclipse-jee-luna-SR1a-win32.zip

    Windows x64の場合:eclipse-jee-luna-SR1a-win32-x86_64.zip

  3. Eclipseのアーカイブファイルを解凍します。

    入手したEclipseのアーカイブファイルを手順1.で作成した作業用ディレクトリーで解凍します。

  4. 解凍したEclipseのファイルをコピーします。

    手順3.で解凍したEclipseのフォルダーを手順1.で作成したEclipseのインストールディレクトリーにコピーします。

  5. 作業用ディレクトリーを削除します。

    メモ

    ランゲージパックを適用する場合は、ダウンロードしたバージョンに合わせて準備してください。

  6. 次のリンクファイルをEclipseのインストールディレクトリー/eclipse/dropinsにコピーします。

    • Application Server for Developersのインストールディレクトリー/common/dropins/com.cosminexus.common.plugin.link

    • Application Server for Developersのインストールディレクトリー/plugins/dropins/com.cosminexus.plugin.link

  7. Eclipseのインストールディレクトリー/eclipse直下にあるeclipse.iniをコピーして、任意の場所に退避します。

    退避したeclipse.iniは、Eclipseをセットアップ前の状態に戻すときに使用します。

  8. Eclipseのインストールディレクトリー/eclipse直下のeclipse.iniを編集します。

    eclipse.iniの編集例を次に示します。

    eclipse.iniの編集例(Windows x86の場合)
    -vm
    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=Application Server for Developersのインストールディレクトリー
    

    注※

    環境変数としてApplication Server for Developersのインストールディレクトリーを指定します。

    eclipse.iniの編集例(Windows x64の場合)
    -vm
    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=Application Server for Developersのインストールディレクトリー
    

    注※

    環境変数としてApplication Server for Developersのインストールディレクトリーを指定します。

  9. -cleanオプションを指定してEclipseを起動します。

    Eclipseのインストールディレクトリー/eclipse/eclipse.exe -clean
  10. Eclipseのメニューから[ヘルプ][Eclipse について]を選択します。

    [Eclipse について]ダイアログが表示されます。

  11. [インストール詳細]ボタンをクリックします。

    [Eclipse のインストール詳細]ダイアログに、次のプログラムが表示されていることを確認してください。

    • Application Development Tools

    • Sharing Library Plug-in

  12. 確認できたら[閉じる]ボタンをクリックします。