Why no option to import a WAR file into Eclipse?

后端 未结 4 534
一生所求
一生所求 2021-01-18 12:00

I have a WAR file for a Java project but when I try to import it into Eclipse, the only option is for archive files such as tar, zip, jar - nothing for war.

Is this

4条回答
  •  清酒与你
    2021-01-18 12:21

    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.

提交回复
热议问题