I am trying to add a PNG graphic to a GWT 2.6 application in Eclipse Kepler, using the latest plugins.
I have found numerous StackOverflow questions dealing with this topic, such as this, this, this, this or this. Likewise, there are plenty of resources on the web, such as this, this or this. Ultimately, there are the official docs on the project structure.
They all boil down to putting static resources such as image files into the war
or the public
folder.
Now, my default project structure created by Eclipse does not seem to contain any folder named public
, so I am not sure where that one would be supposed to be located, but I have tried on two machines placing the files in the war
folder. Evidently, this does not work, as the custom contents of the war
folder is deleted every time I recompile the project.
What am I doing wrong; where are image files or other custom static resources supposed to be placed in my project?