简体   繁体   中英

eclipse.ini file not present on Mac

I am trying to alter my eclipse configuration, but the eclipse.ini file is not present in my eclipse installation directory.

I am on Mac os x with eclipse 4.2.1 Juno.

Did the eclipse.ini file get replaced with the config.ini in eclipse/configuration?

Here is how you reach that file.

  1. If your eclipse link is in dock. go to the link press the control key and left click and go to option and select show in finder.在此处输入图片说明

  2. Once you see the link in finder. go to the link and press the control key and left click and select Show package Content .在此处输入图片说明

  3. go to Contents -> MacOS -> eclipse.ini and open in your favorite text editor.在此处输入图片说明

The file should be found at Eclipse.app/Contents/MacOS/eclipse.ini

For example: /Applications/eclipse/Eclipse.app/Contents/MacOS

Alternatively it might be found instead at Eclipse.app/Contents/Eclipse/eclipse.ini (Both possibilities are noted in different parts of the wiki documentation , and it may be that /Eclipse/ is used for newer versions.)

On mac machine do the following to see eclipse.ini file

  1. Right click on eclipse icon as in image.(Note: From which ever folder it was installed)
  2. Select Show Package Contents second option from list.
  3. Select Contents-->MacOS-->eclipse.ini file

在此处输入图片说明

On Mac High Sierra

Go to : Applications > Eclipse (Right-click on the icon and select " Show Package Contents ") > Contents > Eclipse

As of Neon the default install location is not /Applications but /Users/username/eclipse .

My installation was at:

/Users/username/eclipse

The 'app' was at:

/Users/username/eclipse/jee-neon/Eclipse.app

And the 'eclipse.ini' file was at:

/Users/username/eclipse/jee-neon/Eclipse.app/Contents/Eclipse/eclipse.ini

或者,在 eclipse 安装文件夹中,右键单击“eclipse”(别名或符号链接)-> 显示原始文件-> eclipse.ini

For Eclipse Mars the location moved on Macs to the Eclipse folder.

myComputerName:Eclipse myDriveName$ pwd
/Users/myUser/eclipse/jee-mars2/Eclipse.app/Contents/Eclipse
BYOD-1170:Eclipse ijet-sd$ ll
total 16
drwxr-xr-x   7 ijet-sd  staff   238 Mar 24 13:54 .
drwxr-xr-x   6 ijet-sd  staff   204 Jan 19  2016 ..
-rw-r--r--   1 ijet-sd  staff    60 Sep  2  2015 .eclipseproduct
drwxr-xr-x  12 ijet-sd  staff   408 Mar 24 13:54 configuration
drwxr-xr-x   2 ijet-sd  staff    68 Jan 19  2016 dropins
-rw-r--r--   1 ijet-sd  staff  1113 Mar  1 12:23 eclipse.ini
drwxr-xr-x   3 ijet-sd  staff   102 Jan 19  2016 readme

Yes For Eclipse NEON it should be

/Users/username/eclipse/jee-neon/Eclipse.app/Contents/Eclips‌​e/eclipse.ini

I was using STS and the file was named differently. It was located at /Applications/STS.app/Contents/Eclipse/STS.ini .

On Mac Catalina

move mat.app into mac ~/Application, then use it directly

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM