Java 查找 Eclipse 项目文件位置

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

Finding the Eclipse Project file location

javaandroideclipseide

提问by Dongle

I have an android project running in Eclipse IDE. Lets say it is 'ABC Project'. Some of my collieges have made number of copies of this project, so the project files can be seen in desktop, C://, D:// and even in eclipse work space. Now I don't know project in which location I am running because they have deleted and imported the project folder to eclipse using this copies and they can't remember whether they selected the option 'make a copy to the workspace'.. How can I get this location? I tried to right click on the project and see any option is there but no. Manually finding it using java code (getAbsolutePath()) will return no good, it will return the path in the phone.

我有一个在 Eclipse IDE 中运行的 android 项目。可以说它是“ABC 项目”。我的一些学院已经制作了这个项目的多个副本,因此项目文件可以在桌面、C://、D:// 甚至 eclipse 工作空间中看到。现在我不知道我在哪个位置运行项目,因为他们已经删除并使用此副本将项目文件夹导入到 Eclipse 中,并且他们不记得他们是否选择了“复制到工作区”选项。我得到这个位置?我尝试右键单击该项目并查看是否有任何选项,但没有。使用java代码(getAbsolutePath())手动查找它不会返回任何好处,它将返回手机中的路径。

Please help.

请帮忙。

采纳答案by Aditya Kamath

Did you try right click on project ->Properties->Resources ? You will be able to see the Project path there.

您是否尝试右键单击 project ->Properties->Resources ?您将能够在那里看到项目路径。

回答by kathir

Right Click on project and click on Resources.

右键单击项目,然后单击资源。

In that it shows the location where it is .

因为它显示了它所在的位置。

Find it out dude :)

找出来伙计:)

回答by Swapnil Gangrade

Use Alt+Enter on the project Name in Eclipse to see the complete path of the project directory where it resides.

在 Eclipse 中的项目名称上使用 Alt+Enter 可以查看其所在项目目录的完整路径。

enter image description here

在此处输入图片说明

回答by Rancs

Properties -> Resource -> Linked Resources -> PROJECT_LOC

属性 -> 资源 -> 链接资源 -> PROJECT_LOC