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
-
Application Server for Developers has been installed on the machine.
-
The default debugging environment has been set up.
Intended users
-
Application developers
Procedure
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.
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
Extract the Eclipse archive file.
Extract the obtained Eclipse archive file to the work directory created in step 1.
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.
Delete the work directory.
- Reference note
-
If you apply a language pack, use the one appropriate to the downloaded version.
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
-
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.
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.
Specify the -clean option, and then start Eclipse.
installation_directory_for_Eclipse/eclipse/eclipse.exe -clean
From the Eclipse menu, select Help > About Eclipse.
The About Eclipse dialog box appears.
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
-
After confirming that the programs above are displayed, click the Close button.