Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
|
...
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:
Copy
/snap/eclipse/current/eclipse.ini
to somewhere you can edit it. Let us say, copy it to/home/USERNAME/eclipse.ini
.Edit the arguments you want to update and save the file.
Open Menulibre
Search for "Eclipse."
Click in the Eclipse icon.
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
Click in Menulibre's "Save" button.
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 |
...
More info at https://github.com/eclipse/buildship/blob/master/docs/user/Overview.md#project-import
Troubleshooting
General troubleshooting steps for Eclipse are:
...