Resource File Not Found

39 views
Skip to first unread message

Mbuso Kotobe

unread,
May 11, 2020, 3:19:37 PM5/11/20
to GWT Users
Hi, I have an Image I want to load using Image Resource and the Image is placed in the same folder as the source file
The css file is also in the same folder and it works perfectly however, it is a Different story with the png file

I get an Error saying Resource file treeWhite.png is missing (expected at package.........)

What are the possible solutions for this?

Craig Mitchell

unread,
May 15, 2020, 11:23:55 PM5/15/20
to GWT Users
Sounds like your @Source value is not correct in your ClientBundle.  http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html#ImageResource

If the image in in the same folder as your ClientBundle interface, you should be able to just give it the name of the image, with no path.
Reply all
Reply to author
Forward
0 new messages