You have to navigate relatively from the directory your Resource interfaces resides in...
On 11 Jan., 20:32, mars <[email protected]> wrote: > hi, > > i have a maven gwt project, no exception all the images are stored > under 'src/main/webapp/img', then in the package : > 'com.mycom.myapp.client' i have Resources.java which defines all > images/text/css resources for the whole project as below: > > public interface Resources extends ClientBundle { > final static String IMG_ROOT_PATH = "src/main/webapp/img/"; > > Resources INSTANCE = GWT.create(Resources.class); > > @Source(IMG_ROOT_PATH + "logo.png") > ImageResource logo(); > > } > > however when i complied it complaint cannot find that image. how > should i specify the path here? thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
