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?
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.
right click in project > export > web project > . war Then copy the . war file into webapp directory of your apache tomcat.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With