views:

49

answers:

2

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

A: 

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.

CoolBeans
As you can see from the screenshot I posted above, there is no File->Import->Web->War option. I'm using Ganymede (3.52).
apfel
Okay, The Elite Gentleman mentioned you must not have Eclipse IDE for Java EE developers. My Eclipse 3.5 is for EE developers. WAR is part of dynamic web project stuff so you really need the EE version. You can download it from here http://www.eclipse.org/downloads/ .
CoolBeans
@CoolBeans, I said, you need Eclipse IDE for Jave EE Developers.
The Elite Gentleman
I can import WAR files with my Eclipse. Sorry I am not following what you said. I am using eclipse galelio and I can import file following the path I mentioned.
CoolBeans
+3  A: 

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.

The Elite Gentleman