Versions Compared

Key

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

Table of Contents

...

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 via 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.

...

Configuration

Application memory

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

Ensure the eclipse.ini contains the following JVM options:

Code Block
-Xms512m
-Xmx2g

...

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:

...