Mac 上不存在 eclipse.ini 文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15454889/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 21:37:03  来源:igfitidea点击:

eclipse.ini file not present on Mac

eclipseconfiguration

提问by user1769255

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

我正在尝试更改我的 eclipse 配置,但 eclipse.ini 文件不在我的 eclipse 安装目录中。

I am on Mac os x with eclipse 4.2.1 Juno.

我在 Mac os x 上使用 eclipse 4.2.1 Juno。

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

eclipse.ini 文件是否被 eclipse/configuration 中的 config.ini 替换了?

回答by Ashish

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. enter image description here

  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. enter image description here

  3. go to Contents -> MacOS -> eclipse.ini and open in your favorite text editor. enter image description here

  1. 如果您的 Eclipse 链接在 Dock 中。转到链接按控制键并左键单击并转到选项并选择在查找器中显示。 在此处输入图片说明

  2. 一旦你在finder中看到链接。转到链接并按控制键并左键单击并选择Show package Content在此处输入图片说明

  3. 转到 Contents -> MacOS -> eclipse.ini 并在您喜欢的文本编辑器中打开。 在此处输入图片说明

回答by Appleshell

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

该文件应该在 Eclipse.app/Contents/MacOS/eclipse.ini

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

例如: /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.)

或者,它可能会在Eclipse.app/Contents/Eclipse/eclipse.ini(两种可能性都在维基文档的不同部分中注明,并且可能/Eclipse/用于较新版本。)

回答by Vinoth Kumar Subramanian

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

在 mac 机器上执行以下操作以查看 eclipse.ini 文件

  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
  1. 右键单击图像中的 eclipse 图标。(注意:从哪个文件夹安装它)
  2. 从列表中选择显示包内容第二个选项。
  3. 选择 Contents-->MacOS-->eclipse.ini 文件

enter image description here

在此处输入图片说明

回答by Suresh Gannaram

On Mac High Sierra

在 Mac High Sierra 上

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

转到:应用程序> Eclipse(右键单击图标并选择“显示包内容”)>内容> Eclipse

回答by anon58192932

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

从 Neon 开始,默认安装位置不是/Applicationsbut /Users/username/eclipse

My installation was at:

我的安装是在:

/Users/username/eclipse

/Users/username/eclipse

The 'app' was at:

“应用程序”位于:

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

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

And the 'eclipse.ini' file was at:

“eclipse.ini”文件位于:

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

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

回答by Kyle Bridenstine

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

对于 Eclipse Mars,该位置在 Mac 上移至 Eclipse 文件夹。

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

回答by ifelse.codes

Yes For Eclipse NEONit should be

是 对于Eclipse NEON,它应该是

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

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

回答by Pierre Thibault

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

我正在使用 STS 并且文件的名称不同。它位于/Applications/STS.app/Contents/Eclipse/STS.ini

回答by donsasikumar

Alternatively, in eclipse installation folder, Right click on 'eclipse' (alias or a symbolic link) -> Show Original -> eclipse.ini

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