mac OSX 中 eclipse mars 的“plugins”目录的位置在哪里?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33858411/
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-09 05:36:17  来源:igfitidea点击:

Where is the location of 'plugins' directory for eclipse mars in mac OSX?

eclipsemacoseclipse-plugineclipse-mars

提问by Cho4sure

I was trying to install the eclipse plug-in for an assignment. But the problem is, my installed eclipse's version is mars, which means I can not find the location of the 'plugins' directory, which was used to save plug-in jar files.

我正在尝试为作业安装 eclipse 插件。但是问题是,我安装的eclipse的版本是mars,也就是说我找不到plugins目录的位置,这个目录是用来保存插件jar文件的。

I've updated the eclipse Luna to Mars recently. When I installed(unzipped) the eclipse luna, I remember that there was 'plugins' directory and other things (including eclipse.app) were in the 'eclipse' directory. However, The mars, archive file just gives me an eclipse.app!..

我最近将日食 Luna 更新到了火星。当我安装(解压缩)eclipse luna 时,我记得有“plugins”目录,其他东西(包括 eclipse.app)在“eclipse”目录中。然而,火星档案文件只给了我一个 eclipse.app!..

Could you tell me how to add the plugin(*.jar, in my case, UMLet) to eclipse mars on Mac OSX? I have to do my assignment.. The due is coming..

你能告诉我如何在 Mac OSX 上添加插件(*.jar,在我的例子中是 UMLet)到 eclipse mars 吗?我必须完成我的任务..到期了..

回答by Babu

In my case (Mars on Mac version Darwin 14.5.0, installed with Eclipse installer) I found the plugins folder in MY_HOME_DIRECTORY/.p2/pool/plugins. I found this path with this: Eclipse -> About Eclipse -> Installation Details -> Configuration -> property --launcher.library

就我而言(Mac 版本 Darwin 14.5.0 上的 Mars,随 Eclipse 安装程序一起安装)我在MY_HOME_DIRECTORY/.p2/pool/plugins. 我找到了这个路径:Eclipse -> About Eclipse -> Installation Details -> Configuration -> property --launcher.library

回答by greg-449

Eclipse Mars on the Mac has been reworked to be a proper Mac application with everything included in the Eclipse.app package.

Mac 上的 Eclipse Mars 已经过重新设计,成为一个合适的 Mac 应用程序,所有内容都包含在 Eclipse.app 包中。

The new path for the plugins is

插件的新路径是

/Applications/Eclipse.app/Contents/Eclipse/plugins

If you are looking at '/Applications' using the Mac Finder you will just see 'Eclipse'. You have to right click on 'Eclipse' and choose 'Show Package Contents' to see the contents.

如果您正在使用 Mac Finder 查看“/Applications”,您只会看到“Eclipse”。您必须右键单击“Eclipse”并选择“显示包内容”才能查看内容。

Just putting things in the Eclipse plugins directory may not work. If at all possible you should use a proper Eclipse update site (sometimes called a repository) with 'Install New Software'.

只是将东西放在 Eclipse 插件目录中可能不起作用。如果可能,您应该使用带有“安装新软件”的适当 Eclipse 更新站点(有时称为存储库)。

Note most Eclipse installs now use 'oomph' which installs in a different location - see this answer

请注意,大多数 Eclipse 安装现在使用安装在不同位置的“omph” - 请参阅此答案

回答by Crabime

you can use terminal add go to folder contain eclipse with has an icon, and use ls -lrtand you will see Eclipse.app in it. and cdto such folder and will see all things like windows.

您可以使用终端添加转到包含带有图标的 eclipse 的文件夹,然后使用ls -lrt,您将在其中看到 Eclipse.app。并cd到这样的文件夹,将看到所有像 windows 的东西。

回答by Allahbakash.G

<Eclipse-path>/Eclipse.app/Contents/Eclipse

You can check in below location from your terminal,

您可以从您的终端签到以下位置,

cd /Users/<user-name>/Downloads/Eclipse.app/Contents/Eclipse

where <user-name>is logged in mac user, <Eclipse-path>is a location where Eclipse.app is saved

其中,<user-name>在Mac用户登录, <Eclipse-path>就是Eclipse.app保存的位置