I've just been setting up a Ubuntu workstation and wanted to add some settings to eclipse.ini. When I searched for the file I found:
- /etc/eclipse.ini
- /usr/lib/eclipse.ini
My questions are:
- Does Eclipse actually use both files?
- If so, in what order does it read them?
- How does it merge them?
- Both of the files I found are system wide, is there a location in my home directory I could put one that would effect only my instances?
I have Ubuntu 18 and eclipse installation is squashed in a file
which is mount on /snap/eclipse/40 as read only. Just run
This eclipse.ini file is really read only, that means, you cannot modify it, even with sudo. However, I also have a eclipse.ini.ignored file in HOME/.eclipse/some number/configuration. This is being by default ignored, but you can change the "launcher.ini" in the eclipse launcher command.
Here's how to determine which eclipse.ini file you should use (joomla.org):
To be sure where your Eclipse folder is, check $ECLIPSE_HOME, and if not specified (these directions at least work for Juno):
sources:
According to https://wiki.eclipse.org/Eclipse.ini
The certain way to make sure is to run strace on eclipse. In the output you'll see where is eclipse actually trying to pull the file from.
There is only one file.
You probably have already found this out, chances are when you installed Eclipse the installation created (or you did manually) a file /usr/bin/eclipse which if you check it probably looks like the following:
especially if you followed instructions similar to the ones like these on If-not-true-then-false
On the other hand if you have installed from a package, I suspect you will find that eclipse ends up in /usr/bin, most likely a symbolic link to /usr/lib/eclipse/eclipse (or at least I found it on my Fedora system after using yum to install eclipse).