简体   繁体   English

导入项目Eclipse时遇到问题

[英]Trouble importing project Eclipse

I have a Java project that I am trying to load into eclipse. 我有一个Java项目,正试图加载到Eclipse中。

I was given a WAR file. 我得到了一个WAR文件。 I unzipped the WAR file and see there are 4 folders 我解压缩了WAR文件,然后看到有4个文件夹

.settings build resources src - contains java source code it appears WebConent .classpath .project .settings建立资源src-包含出现在Java中的源代码WebConent .classpath .project

How do I load this project into Eclipse? 如何将该项目加载到Eclipse中? I see so many options to import this but not sure which method I Should do. 我看到了很多导入此选项的选项,但不确定应该使用哪种方法。 Any help is greatly appreciated. 任何帮助是极大的赞赏。

war文件不是使用eclipse打开的有效项目,war文件是已编译的proyect

The .project file is the one you can use to import in Eclipse . .project文件是可用于在Eclipse导入的文件。 If the project has a pom.xml file (a Maven project) then you can import as " Existing Maven Project " 如果项目具有pom.xml文件( Maven项目),则可以导入为“ Existing Maven Project

For Eclipse's .project file import - go to Import -> General -> Existing Projects into Workspace and select the .project file 对于Eclipse的.project文件导入-转到Import -> General -> Existing Projects into Workspace然后选择.project文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM