Why no option to import a WAR file into Eclipse?

隐身守侯 提交于 2019-12-01 17:04:10

Your version of Eclipse is Eclipse IDE for Java Developers. Try download Eclipse IDE for Java EE developers

Your version of Eclipse doesn't have the Web tree pane.

What version of eclipse do you have? I have 3.4 and 3.5 installed currently and both have this following path to import a war file.

Go to File->Import->Web->War.

If u still using Eclipse IDE for Java Developers so there is a alternate solution for it, it is not a good solution for developer but it work.

1.Unzip the war file.

2.than create a project in eclipse.

3.Than copy the contain of unzip folder one by one & paste in proper position in your project.like servlet paste in src & jsp pages place in war folder.

4.care fully read this point an unzip folder there is a web-inf folder & also in your project there is web-inf folder. So copy the contain of web-inf folder carefully in project web-inf folder.

This solution perfectly work.

Just install the Eclipse Web Dev tools from the Marketplace over the Eclipse for Java developers. No need to install IDE for Java EE developers.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!