Schwenk
Schwenk

Reputation: 224

How to Change Java project into a gwt web application in eclipse?

I have an existing java Project in eclipse and I need to convert it into a GWT web project to deploy it.

I've already changed it with right click on project > properties > google > Web toolkit to get the GWT sdk and right click project > properties > google > app engine use google app engine to get app engine sdk.

The problem is that I dont have a WAR so I can't deploy it and I can't chose a directory in the settings. I could copy the WAR from an existing GWT Project but thats not really working.

Any suggestions of how can I change it properly?

Upvotes: 0

Views: 1145

Answers (1)

El Hoss
El Hoss

Reputation: 3832

Assuming, that you are using the GWT Plugin for Eclipse, just set your WAR directory to the webapp directory of your project:

enter image description here

If you are using v3 of the GWT Plugin for Eclipse, it might be necessary to update the project facets by clicking the GWT facet:

enter image description here

Hope that helps.

Upvotes: 1

Related Questions