Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why no option to import a WAR file into Eclipse?

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 only an option in certain editions of Eclipse because I have a copy of SpringSource (also Eclipse-base) that allows me to import WAR files?

Would it be possible to add this option to my current version without downloading a new edition of Eclipse?

alt text

like image 930
apfel Avatar asked Aug 18 '10 14:08

apfel


People also ask

Can I import WAR file in Eclipse?

war file click file>import. Then click on the web folder and select WAR file. Alternativly you can type war into the input field for "select an input source." You can then select your . war file and from that file select the project you would like to import.

Where can I find WAR file in Eclipse?

right click in project > export > web project > . war Then copy the . war file into webapp directory of your apache tomcat.


2 Answers

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.

like image 44
CoolBeans Avatar answered Oct 26 '22 11:10

CoolBeans


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.

like image 195
Buhake Sindi Avatar answered Oct 26 '22 12:10

Buhake Sindi