Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
|
...
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:
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, edit add the following lines to the eclipse.ini with:.
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
...
More info at https://github.com/eclipse/buildship/blob/master/docs/user/Overview.md#project-import
Troubleshooting
General troubleshooting steps for Eclipse are:
...