Adding image to vaadin application

I wanted to use image in my vaadin application. This is my trial.
ThemeResource resource = new ThemeResource(“//resources//image/logo.png”);
Embeded embeded = new Embeded(resource);
addComponent(embeded);

However, the logo.png file is placed in /resources/image relative to the application path, but it does not works. Please can someone help me out?

If you are using ThemeResource, you must place an image in a theme catalog. It is explained pretty well in these articles:

Theme inheritance


Theme resources