Add image into layaout header


i want to add image into app layput header:

layout.add(new Image(“src/main/resources/META-INF/resources/images/Logotyp_Dookoła_Pracy_KRZYWE_v2.png”,“”));

this is exactly when i am keeping my image.

Why this is not working?

the correct path may be “images/Logotypblahblah…png”

it depends also on the type of project (spring, plain java, …)

Take a look here Loading Resources | Advanced Topics | Vaadin Docs

thank you

i have used

this link


and there is exatly path which i used for spring. i am running skleten for spring starter

Yes, the resource should be there, but you must reference it without the src/main/resources/META-INF/resources/ prefix, as in the example

aaa ah

thank you so much!!