views:

2078

answers:

2

Hey,

I'm using Eclipse Ganymede to create a web application, but the project's currently just a standard Java project. I want to convert it to a Dynamic Web Project and I need a hand in doing that.

I've had suggestions given to me about editing the .project file, but when I restart Eclipse it refuses to open the project claiming the file is corrupt. There's also no facet management options in the project properties.

Any suggestions?

+5  A: 

Well. I'll tell you why, folks. It's because a lot of these guides miss out some fundamental things.

  1. Yes, you need to change the .project file to add some missing natures and builders (create a new Dynamic Web Project and examine the created .project file to see what's missing).

  2. You also need to add things to the .settings folder. It'll be missing two or three files, one of which is a key xml file. They're all required for it to understand the new natures you've given it.

Huzzah for computers.

Mike
http://greatwebguy.com/programming/eclipse/converting-a-java-project-to-a-dynamic-web-project-in-eclipse/
Cherian
http://www.scottmurphy.info/java-convert-to-a-dynamic-web-project-eclipse-3.3-europa-3.4-ganymede
Cherian
+1  A: 

Is it really necessary to convert it? Why not create your dynamic web project and move your java files instead?

svachon