Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does Eclipse look for eclipse.ini under Linux

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?
like image 926
Jon Strayer Avatar asked Dec 07 '11 16:12

Jon Strayer


People also ask

Where do I find Eclipse ini file?

For windows, it's in the same directory as eclipse.exe file, as shown in below image. You can reach this location by first right clicking on Eclipse app and click on “Show Package Contents” and then in the next window navigate to Contents/Eclipse directory, as shown in below images.

How do I open Eclipse ini file in Eclipse?

Right-click or secondary click or Control-click on Eclipse App as shown on the picture. Click on "Show package contents" you can find the eclipse. ini under Contents>Eclipse folder.

What is Eclipse ini file?

ini in your Eclipse installation directory (or in the case of Mac, the Eclipse. app/Contents/MacOS directory) is used. eclipse. ini is a text file containing command-line options that are added to the command line used when Eclipse is started up.


2 Answers

There is only one file.

lrwxrwxrwx 1 root root 16 Aug 8 2012 /usr/lib/eclipse/eclipse.ini -> /etc/eclipse.ini

like image 177
Jon Strayer Avatar answered Sep 21 '22 19:09

Jon Strayer


Here's how to determine which eclipse.ini file you should use (joomla.org):

  • If you downloaded Eclipse IDE manually from internet the "eclipse.ini" file is just inside the unpacked folder
  • If you installed Eclipse via terminal or software center the location of the file is "/etc/eclipse.ini"
  • In some Linux versions the file can be found at "/usr/share/eclipse/eclipse.ini". Do not use this file if you found a config file at "/etc/eclipse.ini".

To be sure where your Eclipse folder is, check $ECLIPSE_HOME, and if not specified (these directions at least work for Juno):

  • Open Eclipse as you normally do.
  • Click Help -> About Eclipse SDK
  • Click Installation Details
  • Go to the Configuration tab
  • Find "eclipse.home.location=file:PATH". PATH is where eclipse is installed.

sources:

  • http://docs.joomla.org/Configuring_Eclipse_IDE_for_PHP_development/Linux:
like image 22
Alexander Taylor Avatar answered Sep 22 '22 19:09

Alexander Taylor