Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Eclipse/Installation"

(Eclipse 4.6 (Neon))
(31 intermediate revisions by 8 users not shown)
Line 1: Line 1:
Installing Eclipse is relatively easy.  
+
Installing Eclipse is relatively easy, but does involve a few steps and software from at least two different sources. '''Eclipse is a Java-based application''' and, as such, '''''requires a Java runtime environment (JRE)''''' in order to run.  
  
== Install a JVM ==
 
  
* Regardless of your operating system, you will need to install some Java virtual machine.
+
== Eclipse 4.6 (Neon) ==
:* If using Windows, you may already have one installed, but upgrading won't hurt.
+
:* If using Linux, [[IRC_FAQ#I_just_installed_Eclipse_on_Linux.2C_but_it_does_not_start._What_is_the_problem.3F | read this]] -- GCJ will '''NOT''' work. Also see: [http://www.64bitjungle.com/ubuntu/install-java-jre-160-update-x-on-hardy-as-the-default-java-runtime Installing JRE 1.6.0 (Update x) as the Default Runtime in Linux].
+
* Consider an [http://www.ibm.com/developerworks/java/jdk/index.html IBM JDK] or a [http://java.sun.com/javase/downloads/index.jsp Sun JDK]. See below for minimum requirements.
+
  
== Eclipse 3.5 / Galileo , 3.6 / Helios ==
+
Eclipse 4.6 ([[Neon]]) is [[Neon/Simultaneous_Release_Plan#Schedule|scheduled for release]] on June 22, 2016.
=== Additional plugins ===
+
Go to Help, Install New Software...
+
  
== Eclipse 3.3 / Europa ==
+
Consider using the Installer. Please see [https://www.eclipse.org/downloads/installer-instructions.php 6 Steps to Install Eclipse].
  
* [[#Install a JVM | Install a JDK or JRE]] -- minimum required level is 1.4.2 for basic functionality, but some plugins require 5.0/1.5; for example [http://www.eclipse.org/mylyn Mylyn] and various [http://www.eclipse.org/webtools/ WTP] plugins. If you downloaded and installed the [http://www.eclipse.org/downloads/moreinfo/jee.php Java EE Developer package], you will definitely need Java 5 or JDK 1.5 to run it.
+
A '''Java 8''' JRE/JDK is required to run all Neon packages based on Eclipse 4.6. The reasoning behind requiring Java 8 are discussed [[Eclipse/Installation/Java8Required|here]].
  
* Get Eclipse:
+
== Eclipse 4.5 (Mars) ==
:* If installing on Linux, you '''''can''''' look for a package from your distro maintainter/repositories, but ''this is not supported by eclipse.org.'' If you encounter problems with such a bundle, please contact your distro maintainer.
+
:* Otherwise, download an [http://download.eclipse.org/eclipse/downloads/ Eclipse SDK or Runtime Binary] or a [http://www.eclipse.org/europa Europa Bundle], then unpack it and [[IRC_FAQ#How_do_I_start_Eclipse.3F | start it up]].  
+
  
=== Additional Plugins===
+
Eclipse 4.5 (Mars) was released on June 24, 2015.
  
To add other plugins, here's the general process.
+
Consider using the new Installer! Please see [https://www.eclipse.org/downloads/installer-instructions.php 6 Steps to Install Eclipse].
  
* Start [[IRC_FAQ#What_is_the_Update_Manager.3F | Update Manager]].
+
A '''Java 7''' JRE/JDK is '''required''' for all Mars package downloads based on Eclipse 4.5. Information concerning tested configurations for Eclipse 4.5 is provided [http://www.eclipse.org/eclipse/development/readme_eclipse_4.5.html#TargetOperatingEnvironments here].
{{codeblock|
+
Help > Software Updates > Find and Install... >
+
  (*) Search for new features > Next >
+
  [x] Europa Discovery Site >
+
  New Remote Site > ''[[IRC_FAQ#Where_can_I_get_project_XYZ.3F|add a new site]]'' >
+
  Finish
+
}}
+
  
* Expand the Europa Discovery site to resolve dependencies. '''Collapsed sites will not be searched.'''
+
== Eclipse 4.4 (Luna)  ==
  
* Select the feature(s) you want to install.  
+
Eclipse 4.4 (Luna) was released on June 25, 2014.
  
* Click the '''Select Required''' button to resolve missing dependencies.  
+
A '''Java 7''' JRE/JDK is '''required''' for most of the Luna package downloads based on Eclipse 4.4. Information concerning tested configurations for Eclipse 4.4 is provided [http://www.eclipse.org/eclipse/development/readme_eclipse_4.4.html#TargetOperatingEnvironments here].
  
* Install. Restart. Enjoy.
+
== Eclipse 4.3 (Kepler)  ==
  
== Eclipse 3.2 / Callisto ==
+
Eclipse 4.3 (Kepler) was released in June 2013.
  
* [[#Install a JVM | Install a JDK or JRE]] -- minimum required level is 1.4.2.
+
A Java 6 JRE/JDK is recommended for Eclipse 4.3. More information concerning tested configurations for Eclipse 4.3 is provided [http://www.eclipse.org/eclipse/development/readme_eclipse_4.3.html#TargetOperatingEnvironments here].  
  
* Get Eclipse:
+
== Install a JVM  ==
:* If installing on Linux, you '''''can''''' look for a package from your distro maintainter/repositories, but ''this is not supported by eclipse.org.'' If you encounter problems with such a bundle, please contact your distro maintainer.
+
{{warning|If you are using Eclipse to do Java development, install a JDK<br/>
:* Otherwise, download an [http://download.eclipse.org/eclipse/downloads/ Eclipse SDK or Runtime Binary], then unpack it and [[IRC_FAQ#How_do_I_start_Eclipse.3F | start it up]].  
+
A Java Development Kit (JDK) includes many useful extras for Java developers including the source code for the standard Java libraries.}}
  
=== Additional Plugins===
+
Regardless of your operating system, you will need to install some Java virtual machine (JVM). You may either install a Java Runtime Environment (JRE), or a Java Development Kit (JDK), depending on what you want to do with Eclipse. ''If you intend to use Eclipse for Java development, then you should install a JDK''. If you aren't planning to use Eclipse for Java development and want to save some disk space, install a JRE.
  
To add other plugins, here's the general process.
+
*If you're using Windows, you may already have a JRE installed, but upgrading won't hurt.
 +
*If using Linux, [[IRC FAQ#I_just_installed_Eclipse_on_Linux.2C_but_it_does_not_start._What_is_the_problem.3F|read this]]
 +
**GCJ will '''NOT''' work.
 +
**Also see: [http://www.64bitjungle.com/ubuntu/install-java-jre-160-update-x-on-hardy-as-the-default-java-runtime Installing JRE 1.6.0 (Update x) as the Default Runtime in Linux].
  
* Start [[IRC_FAQ#What_is_the_Update_Manager.3F | Update Manager]].
+
=== JRE/JDK Sources ===
{{codeblock|
+
Help > Software Updates > Find and Install... >
+
  (*) Search for new features > Next >
+
  New Remote Site > ''add the new site: http://download.eclipse.org/callisto/releases/'' >
+
  New Remote Site > ''[[IRC_FAQ#Where_can_I_get_project_XYZ.3F|add a new site]]'' >
+
  Finish
+
}}
+
  
* Select the projects &/or components you want to install.
+
{{warning|Be sure to install a JVM with the same bit level as Eclipse<br/>
 +
i.e. install a 32-bit JRE to run 32-bit Eclipse; install a 64-bit JRE to run 64-bit Eclipse}}
 +
There are several sources for a JRE/JDK. Here are some of the more common/popular ones (listed alphabetically):
  
* Expand the Callisto Updates site to resolve dependencies. '''Collapsed sites will not be searched.'''
+
*[http://www.ibm.com/developerworks/java/jdk/index.html IBM JDK]
 +
*[http://openjdk.java.net/ OpenJDK]
 +
*[http://www.oracle.com/technetwork/java/javase/downloads/index.html Oracle JDK]
  
* Select the feature(s) you want to install.
+
==Download Eclipse==
  
* Click the '''Select Required''' button to resolve missing dependencies.
+
Download Eclipse from the [http://www.eclipse.org/downloads Eclipse Downloads Page].  
:* If it does not work, you will have to manually select dependencies.  
+
::* If '''that''' doesn't work, start over, but add more update sites. Can't find a given dependency? Try [[IRC_FAQ#Where_can_I_get_a_list_of_all_the_Eclipse_projects.3F | here]] or [[IRC_FAQ#Where_can_I_get_project_XYZ.3F | here]].
+
  
* Install. Restart. Enjoy.
+
There are several package choices. Note that you can install the features from any package into any other package. If you are, for example, planning to do mostly Java development and some C/C++ development, you should download the ''Eclipse IDE for Java Developers'' and then add the C/C++ development tools via the "Help > Install New Software..." menu option.
  
 +
The download will be delivered as a compressed (i.e. a ".zip", or ".tar.gz") file. Decompress this file into the directory of your choice (e.g. "c:\eclipse" on Windows) and ensure you have full Read and Execute permissions. You can optionally create a shortcut of the executable file ("eclipse.exe" on Windows, or "eclipse" on Linux).
 +
 +
Note that there is a '''known problem''' with the built-in decompression utility on all current versions of '''Windows'''. We recommend that you use a more robust decompression utility such as the open source [http://www.7-zip.org/ 7zip] when decompressing an Eclipse download. Some people report success when initially decompressing Eclipse into a root directory (e.g. c:\) and then moving it to a more appropriate home (e.g. c:\Program Files\Eclipse)
 +
 +
== Configure Eclipse to use the JVM ==
 +
 +
It is strongly recommended to configure Eclipse with the specific JVM that you want. See the instructions at [[Eclipse.ini]]
 +
This is a very important step to be sure that Eclipse is using the JVM you intend and can't be influenced by any other software that might alter your system.
 +
The JVM used to launch Eclipse has no affect on whether it can compile Java sources for other Java language versions.
 +
 +
== Extending Eclipse ==
 +
 +
Use the ''Help &gt; Install new software...'' menu option to add Kepler features to your Eclipse installation (you can, for example, use this option to add C/C++ development support). Additionally, you can tap into a vast collection of extensions provided by the Eclipse community and ecosystem via the '''Eclipse Marketplace Client''' (''Help &gt; Eclipse Marketplace''). Note that not all Eclipse packages contain the Eclipse Marketplace Client.
 +
 +
== Troubleshooting ==
 +
 +
'''Java was started but returned exit code = 13'''
 +
 +
If you've "installed" Eclipse but are having trouble getting it to run, the most likely cause is that you have not correctly specified the JVM for it to run under. You may need to edit the [[eclipse.ini|eclipse.ini file]].
 +
 +
Another common mistake on Microsoft Windows is a mismatch between the "bittedness" of Eclipse and the JVM/JDK. This is the most frequent cause of an Error 13. 64-bit Eclipse requires a 64-bit JVM, and 32-bit Eclipse requires 32-bit JVM--you can not mix-and-match between 32-bit and 64-bit, so make sure the version of Eclipse you installed matches the JVM/JDK that you're using to run it (and make sure you're using eclipse.ini to specify the exact JVM used to run Eclipse, described above).
 +
 +
As a simple test, open a Command Prompt window, move to the directory that is pointed to by the -vm argument in your eclipse.ini, and run the intended java.exe with the -d32 switch to test if it supports 32-bit, or -d64 to test for 64-bit support. It's often simplest to download a version of Eclipse that will work with whatever Java you already have installed.
 +
 +
'''Extraction requires a password or otherwise fails on Windows.'''
 +
 +
Eclipse downloads ''are not'' password protected. This is a known problem with the built-in decompression utility on all current versions of Windows. We recommend that you either download the installer or use a more robust decompression utility such as the open source 7zip when decompressing an Eclipse download. Some people report success when initially decompressing Eclipse into a root directory (e.g. c:\) and then moving it to a more appropriate home (e.g. c:\Program Files\Eclipse)
 +
 +
== More information ==
 +
 +
*[[FAQ Where do I get and install Eclipse?|Where do I get and install Eclipse?]]
 +
*[[Eclipse/Installation/Older Versions|Installation instructions for older versions of Eclipse]]
  
 
[[Category:FAQ]]
 
[[Category:FAQ]]

Revision as of 16:19, 6 November 2015

Installing Eclipse is relatively easy, but does involve a few steps and software from at least two different sources. Eclipse is a Java-based application and, as such, requires a Java runtime environment (JRE) in order to run.


Eclipse 4.6 (Neon)

Eclipse 4.6 (Neon) is scheduled for release on June 22, 2016.

Consider using the Installer. Please see 6 Steps to Install Eclipse.

A Java 8 JRE/JDK is required to run all Neon packages based on Eclipse 4.6. The reasoning behind requiring Java 8 are discussed here.

Eclipse 4.5 (Mars)

Eclipse 4.5 (Mars) was released on June 24, 2015.

Consider using the new Installer! Please see 6 Steps to Install Eclipse.

A Java 7 JRE/JDK is required for all Mars package downloads based on Eclipse 4.5. Information concerning tested configurations for Eclipse 4.5 is provided here.

Eclipse 4.4 (Luna)

Eclipse 4.4 (Luna) was released on June 25, 2014.

A Java 7 JRE/JDK is required for most of the Luna package downloads based on Eclipse 4.4. Information concerning tested configurations for Eclipse 4.4 is provided here.

Eclipse 4.3 (Kepler)

Eclipse 4.3 (Kepler) was released in June 2013.

A Java 6 JRE/JDK is recommended for Eclipse 4.3. More information concerning tested configurations for Eclipse 4.3 is provided here.

Install a JVM

Warning2.png
If you are using Eclipse to do Java development, install a JDK
A Java Development Kit (JDK) includes many useful extras for Java developers including the source code for the standard Java libraries.


Regardless of your operating system, you will need to install some Java virtual machine (JVM). You may either install a Java Runtime Environment (JRE), or a Java Development Kit (JDK), depending on what you want to do with Eclipse. If you intend to use Eclipse for Java development, then you should install a JDK. If you aren't planning to use Eclipse for Java development and want to save some disk space, install a JRE.

JRE/JDK Sources

Warning2.png
Be sure to install a JVM with the same bit level as Eclipse
i.e. install a 32-bit JRE to run 32-bit Eclipse; install a 64-bit JRE to run 64-bit Eclipse

There are several sources for a JRE/JDK. Here are some of the more common/popular ones (listed alphabetically):

Download Eclipse

Download Eclipse from the Eclipse Downloads Page.

There are several package choices. Note that you can install the features from any package into any other package. If you are, for example, planning to do mostly Java development and some C/C++ development, you should download the Eclipse IDE for Java Developers and then add the C/C++ development tools via the "Help > Install New Software..." menu option.

The download will be delivered as a compressed (i.e. a ".zip", or ".tar.gz") file. Decompress this file into the directory of your choice (e.g. "c:\eclipse" on Windows) and ensure you have full Read and Execute permissions. You can optionally create a shortcut of the executable file ("eclipse.exe" on Windows, or "eclipse" on Linux).

Note that there is a known problem with the built-in decompression utility on all current versions of Windows. We recommend that you use a more robust decompression utility such as the open source 7zip when decompressing an Eclipse download. Some people report success when initially decompressing Eclipse into a root directory (e.g. c:\) and then moving it to a more appropriate home (e.g. c:\Program Files\Eclipse)

Configure Eclipse to use the JVM

It is strongly recommended to configure Eclipse with the specific JVM that you want. See the instructions at Eclipse.ini This is a very important step to be sure that Eclipse is using the JVM you intend and can't be influenced by any other software that might alter your system. The JVM used to launch Eclipse has no affect on whether it can compile Java sources for other Java language versions.

Extending Eclipse

Use the Help > Install new software... menu option to add Kepler features to your Eclipse installation (you can, for example, use this option to add C/C++ development support). Additionally, you can tap into a vast collection of extensions provided by the Eclipse community and ecosystem via the Eclipse Marketplace Client (Help > Eclipse Marketplace). Note that not all Eclipse packages contain the Eclipse Marketplace Client.

Troubleshooting

Java was started but returned exit code = 13

If you've "installed" Eclipse but are having trouble getting it to run, the most likely cause is that you have not correctly specified the JVM for it to run under. You may need to edit the eclipse.ini file.

Another common mistake on Microsoft Windows is a mismatch between the "bittedness" of Eclipse and the JVM/JDK. This is the most frequent cause of an Error 13. 64-bit Eclipse requires a 64-bit JVM, and 32-bit Eclipse requires 32-bit JVM--you can not mix-and-match between 32-bit and 64-bit, so make sure the version of Eclipse you installed matches the JVM/JDK that you're using to run it (and make sure you're using eclipse.ini to specify the exact JVM used to run Eclipse, described above).

As a simple test, open a Command Prompt window, move to the directory that is pointed to by the -vm argument in your eclipse.ini, and run the intended java.exe with the -d32 switch to test if it supports 32-bit, or -d64 to test for 64-bit support. It's often simplest to download a version of Eclipse that will work with whatever Java you already have installed.

Extraction requires a password or otherwise fails on Windows.

Eclipse downloads are not password protected. This is a known problem with the built-in decompression utility on all current versions of Windows. We recommend that you either download the installer or use a more robust decompression utility such as the open source 7zip when decompressing an Eclipse download. Some people report success when initially decompressing Eclipse into a root directory (e.g. c:\) and then moving it to a more appropriate home (e.g. c:\Program Files\Eclipse)

More information

Back to the top