Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
bgColor#f9faff
borderStylesolid
titleContents

Table of Contents

...

  • C:\ProgramData\eclipse\eclipse-java 

The Eclipse INI Configuration File

Eclipse is launched with settings specified in an INI file in the installation directory called eclipse.ini. See the official eclipse.ini documentation. Changes to the INI file will take effect upon the next restart of Eclipse.

When Eclipse is installed via snap

There is no way to edit eclipse.ini directly when Eclipse is installed via snap. Workarounds include:

  • Use the --launcher.ini /path/to/eclipse.ini option.
  • Pass individual settings e.g. -vmargs -Xms1g -Xmx3g  to the launcher.


One alternative way to modify snap installs is through MenuLibre:

Follow these instructions to install MenuLibre:

sudo apt-get update
sudo add-apt-repository ppa:menulibre-dev/daily
sudo apt-get install menulibre

Now follow these instructions to modify eclipse.ini:

  1. Copy /snap/eclipse/current/eclipse.ini to somewhere you can edit it. Let us say, copy it to /home/USERNAME/eclipse.ini.

  2. Edit the arguments you want to update and save the file.

  3. Open Menulibre

  4. Search for "Eclipse."

  5. Click in the Eclipse icon.

  6. In the "Command" input, add the --launcher.ini option after the binary path. In our example, we would replace

     /snap/bin/eclipse %f
    

    with

     /snap/bin/eclipse %f --launcher.ini /home/USERNAME/eclipse.ini 
    
  7. Click in Menulibre's "Save" button.

eclipseImage Added

Selecting a JVM

Eclipse 2020+ requires to run with a Java 11 VM or higher.  If you need to set which JRE Eclipse runs with, add the following lines to the eclipse.ini.

Code Block
-vm
/path/to/jdk

Workspaces

It is not recommended to put your code in a workspace directory. A "workspace" in Eclipse is more akin to isolated or "portable" application settings; not a place to store projects.

...

Configuration

Application memory

...

...

Eclipse

...

Eclipse will perform terribly unless you give it a few GB of memory (RAM).

In Ensure the installation folder, find eclipse.ini. Possible locations include /usr/lib/eclipse, /opt/eclipse, C:\Eclipse, and C:\ProgramData\Eclipse.
Ensure is contains the following JVM options:

Code Block
-Xms512m
-Xmx2g

The values above are just an example. Scale them to fit your needs. See the official eclipse.ini documentation.The settings will take effect upon the next restart of Eclipse.

Create a desktop launcher

...

  1. Go to Help > Eclipse Marketplace...
  2. Then search and install efxclipse

ANSI Color Console

This plugin provides nice log level coloring in the console as supported by IHMC's Log Tools library.

Search "ansi console" in the Marketplace and install ANSI Escape in Console by Mihai Nita.

C++ development

CMake editor: http://www.cthing.com/CMakeEd.asp

...

See Gradle#Troubleshooting

More info at https://github.com/eclipse/buildship/blob/master/docs/user/Overview.md#project-import

Troubleshooting

General troubleshooting steps for Eclipse are:

...