Skip to content

Latest commit

 

History

History
81 lines (53 loc) · 4.91 KB

FAQ_How_do_I_run_Eclipse.md

File metadata and controls

81 lines (53 loc) · 4.91 KB

FAQ How do I run Eclipse?

Contents

Starting Eclipse

When you unzip Eclipse, the directory layout looks something like this:

  eclipse/
     features/			''the directory containing Eclipse features''
     plugins/			''the directory containing Eclipse plugins''
     eclipse.exe		''platform executable''
     eclipse.ini
     eclipsec.exe              ''(windows only) console executable''
     epl-v10.html		''the EPL license''
     jre/			''the JRE to run Eclipse with''
     notice.html	
     readme	

You can start Eclipse by running eclipse.exe on Windows or eclipse on other platforms. This small launcher essentially finds and loads the JVM. On Windows, the eclipsec.exe console executable can be used for improved command line behavior.

Alternatively, you can launch Eclipse by directly invoking the JVM as follows:

java -jar eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar

NOTES:

  • The version of org.eclipse.equinox.launcher in the above command must match the version actually shipped with Eclipse. For more details on launching Eclipse using Java (not eclipse.exe) with the launcher, see Starting Eclipse Commandline With Equinox Launcher.
  • When running on Java ≥ 9, you may have to make some non-default system modules available, e.g., by adding --add-modules ALL-SYSTEM to the command line (please check the release notes on supported Java versions per Eclipse version).

Find the JVM

If a JVM is installed in the eclipse/jre directory, Eclipse will use it; otherwise the launcher will consult the eclipse.ini file and the system path variable. Eclipse DOES NOT consult the JAVA_HOME environment variable.

To explicitly specify a JVM of your choice, you can use the -vm command line argument:

  eclipse -vm c:\\jre\\bin\\javaw.exe              ''start Java by executing the specified java executable
  eclipse -vm c:\\jre\\bin\\client\\jvm.dll         ''start Java by loading the jvm in the eclipse process

See the launcher page for more details on specifying a JVM.

eclipse.ini

The most recommended way to specify a JVM for Eclipse to run in is to put startup configuration into the [eclipse.ini](/Eclipse.ini "Eclipse.ini") file in the same folder as the Eclipse executable (eclipse.exe on Windows). The Eclipse program launcher will read arguments from either the command-line or the configuration file named [eclipse.ini](/Eclipse.ini "Eclipse.ini"). To specify a JVM using configuration file, include the -vm argument in [eclipse.ini](/Eclipse.ini "Eclipse.ini"), for example:

  -vm
  c:/jre/bin/javaw.exe

Note: there are no quotes around this path as would be required when executing the same from the command-line were the path to contain white space, etc. This is a common mistake when using Windows.

Eclipse now will launch without additional arguments in the command-line, with the JVM specified in the [eclipse.ini](/Eclipse.ini "Eclipse.ini") configuration file.

You should always use -vm so you can be sure of what VM you are using. Installers for other applications sometimes modify the system path variable, thus changing the VM used to launch Eclipse without your knowing about it.

The format of the eclipse.ini file is very particular; it is strongly recommended to read eclipse.ini and follow the examples there.

When Eclipse starts, you are prompted to choose a workspace location on start-up. This behavior can be configured in the Preferences. You can manually specify the workspace location on the command line, using the -data command-line argument.

See Also: