eclipse.ini 文件的位置在哪里?

我知道这是一个愚蠢的问题,但我似乎无法找到 IDE 的 eclipse.ini 文件。我查看了我的安装目录,并在文件资源管理器中搜索了文件本身,但找不到它。谁能帮我这个?

stack overflow Where's the location of the eclipse.ini file?
原文答案

答案:

作者头像

It should be right beside the executable.

enter image description here

作者头像

enter image description here

For MacOs Users:

  • Search for Eclipse in finder.
  • 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.

enter image description here

作者头像

In Linux

I give you three possible methods:

  • The most effective method is using the command locate. Write in terminal

    locate eclipse.ini

  • Apart from that, as said in @JoeC answer, it should be in the same directory as the eclipse executable. A link to the eclipse executable is found in /usr/bin , therefore typing in terminal following command will show you the directory of the executable

    ls -l /usr/bin | grep 'eclipse'

  • The last option is to find the executable directory by following the icon in your Menu Editor (but I think that depends highly on your Linux flavour)

作者头像

在 Windows 中:

我可以将其视为可执行文件下方的“SpringToolSuite4”配置文件。

enter image description here

作者头像

I was facing the same problem. I searched my system completely and found it in "User". User had two more folders, in my laptop it was Lenovo and Public. I found a folder named eclipse in Lenovo, clicked on it and got another folder named java-2022-032 in which the file eclipse.ini was present. Name of file was eclipse and its type was "configuration setting". This is your file. (You can also see the properties to check if its type is .ini or not.)