在eclipse中打开现有的java项目
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3095996/
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
open existing java project in eclipse
提问by uno
As one of our dev guy is on vacation, I got his task. The source code is in our svn repository and i got down the java project source. downloaded eclipse 3.3.2 sdk as that were his instruction.
由于我们的一名开发人员正在休假,我得到了他的任务。源代码在我们的 svn 存储库中,我得到了 java 项目源。下载了 eclipse 3.3.2 sdk,因为那是他的指令。
How do I open an existing project in eclipse? Coming from MS world, i do not have the luxury of finding a .sln file.
如何在 Eclipse 中打开现有项目?来自 MS 世界,我没有找到 .sln 文件的奢侈。
回答by Uri
If this is a simple Java project, You essentially create a new project and give the location of the existing code. The project wizard will tell you that it will use existing sources.
如果这是一个简单的 Java 项目,您实际上是创建一个新项目并提供现有代码的位置。项目向导会告诉您它将使用现有源。
Also, Eclipse 3.3.2 is ancient history, you guys should really upgrade. This is like using Visual Studio 5.
另外,Eclipse 3.3.2 是历史悠久,你们真的应该升级。这就像使用 Visual Studio 5。
回答by meriton
The typical pattern is to check out the root project folder (=the one containing a file called ".project") from SVN using eclipse's svn integration (SVN repository exploring perspective). The project is then recognized automatically.
典型的模式是使用 Eclipse 的 svn 集成(SVN 存储库探索视角)从 SVN 检出根项目文件夹(=包含名为“.project”的文件的文件夹)。然后自动识别该项目。
回答by mcandre
- File -> Import -> Existing Project into Workspace
- Browse for that directory.
- 文件 -> 导入 -> 现有项目到工作区
- 浏览该目录。
Alternative: Check out the code in SVN to some folder
替代方法:将 SVN 中的代码检出到某个文件夹
- Create a new folder in windows
- In eclipse File -> switchWorkspace -> newFolderName
- close the welcome window in eclipse
- In eclipse File -> Import -> Existing project into workspce-> select root dir -> browse and show the svn checkout folder
- 在 windows 中创建一个新文件夹
- 在 eclipse 文件 -> switchWorkspace -> newFolderName
- 在 Eclipse 中关闭欢迎窗口
- 在eclipse文件->导入->现有项目到workspce->选择根目录->浏览并显示svn checkout文件夹
回答by Gilbert Le Blanc
Eclipse does not have internal Subversion connectivity. After you've downloaded and unzipped Eclipse, you have to install a Subversion plug-in. Check with the other developers as to which Subversion plug-in you're using. Subclipse is one Subversion plug-in.
Eclipse 没有内部 Subversion 连接。在您下载并解压 Eclipse 之后,您必须安装一个 Subversion 插件。与其他开发人员核对您使用的是哪个 Subversion 插件。Subclipse 是一款 Subversion 插件。
After you've installed the Subversion plug-in, you have to give Eclipse the repository information in the SVN Repositories view of the SVN Repositories perspective. One of the other developers should have that information.
在安装了 Subversion 插件之后,您必须在 SVN Repositories 透视图的 SVN Repositories 视图中向 Eclipse 提供存储库信息。其他开发人员之一应该拥有该信息。
Finally, you check out the project from Subversion, by left clicking on the Package Explorer, selecting New -> Project, and in the New Project wizard,left clicking on SVN -> Checkout projects from SVN.
最后,从 Subversion 检出项目,左键单击 Package Explorer,选择 New -> Project,然后在 New Project 向导中,左击 SVN -> Checkout projects from SVN。
回答by fernando.simangunsong
Simple, you just open klik file -> import -> General -> existing project into workspace -> browse file in your directory.
简单,您只需打开 klik 文件 -> 导入 -> 常规 -> 现有项目到工作区 -> 浏览目录中的文件。
(I'am used Eclipse Mars)
(我用过 Eclipse Mars)