将现有的 Java 动态 Web 项目导入 Eclipse
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20563894/
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
Importing existing java dynamic web project into Eclipse
提问by Samantha Withanage
How can I import a java web projectinto Eclipse IDE. in the import dialog there is only a warfile upload can be selected. But I couldn't find something like import a project.
如何将java web 项目导入Eclipse IDE。在导入对话框中,只能选择一个war文件上传。但是我找不到像导入项目这样的东西。
So how can I import an existing java web project. Thank You!
那么如何导入现有的 java web 项目。谢谢你!
采纳答案by emphywork
You can always import your project that you have made it, previously with Eclipse using the "Existing Project into Workspace" option.
您始终可以导入您制作的项目,以前使用 Eclipse 使用“现有项目到工作区”选项。
It will directly load all the packages of your Dynamic web Project, related to Eclipse Folder Structure.
它将直接加载与 Eclipse 文件夹结构相关的动态 Web 项目的所有包。
And if you want to import a Web Project which is may be made with using other IDE than Eclipse and if it is pure web project than use WAR import, because it is a complete way to import any web project. For this prerequisite is that when Exporting the project you have it in WAR file.
如果你想导入一个 Web 项目,它可以使用 Eclipse 以外的其他 IDE 制作,如果它是纯 Web 项目,则不要使用 WAR 导入,因为它是导入任何 Web 项目的完整方式。对于此先决条件,导出项目时,您将其保存在 WAR 文件中。
Note:-I have not worked with other IDE than Eclipse that much. So I can say that there may be others who knows how to import project created from other IDE than Eclipse.
注意:-除了 Eclipse,我还没有使用过其他 IDE。所以我可以说可能还有其他人知道如何导入从 Eclipse 以外的其他 IDE 创建的项目。
回答by Gimby
Using that 'existing projects into workspace' you have already highlighted? Assuming you're talking about an existing Eclipse project, and not about a project which has only code. Otherwise you just create a new web project and you copy the source to it.
使用您已经突出显示的“现有项目进入工作区”?假设您在谈论一个现有的 Eclipse 项目,而不是一个只有代码的项目。否则,您只需创建一个新的 Web 项目并将源复制到其中。
回答by A Paul
You can import existing projects(any type) from below location in Eclipse
您可以从 Eclipse 中的以下位置导入现有项目(任何类型)
File > Import > Existing Project into Workspace
回答by Vineet Kasat
Use New -> Java Project -> A window will open -> Uncheck Use Default Location -> Browse to the root of the project -> Finish
使用新建 -> Java 项目 -> 将打开一个窗口 -> 取消选中使用默认位置 -> 浏览到项目的根目录 -> 完成