Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9149015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:25:11+00:00 2026-06-17T11:25:11+00:00

I have created a ClientBundle as below. public interface DataResources extends ClientBundle { DataResources

  • 0

I have created a ClientBundle as below.

public interface DataResources extends ClientBundle {
    DataResources IMPL = (DataResources) GWT.create(DataResources.class);
            @Source("marker.png")
            ImageResource markerimage();

            @Source("settings.png")
            ImageResource settingsimage();

            @Source("back.png")
            ImageResource backimage();
}

I am getting an error that it cannot find the resources. I have all the images in the top level of my “war” directory.

00:00:04.302  [ERROR] Resource marker.png not found. Is the name specified as Class.getResource() would expect?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:25:12+00:00Added an answer on June 17, 2026 at 11:25 am

    Data resources are referenced relative to the package (folder) your class is in. You can try moving the images in the same package to check if that works.

    I would typically have my resource interface in a package – something like com.project.resources. The images would then be in com.project.resources.images, and the Source annotations would take the form @Source("/images/marker.png").

    By following this package structure you can also bundle your resources/images in JARs and can include and reference them in other projects.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created two imageViews promatically as shown below: public void createImageViews(Integer count){ ImageView[]
I have created a CustomValidator control public class MyValidator :CustomValidator, IScriptControl {} and also
I have created a list view with a custom baseAdapter (my own class extends
I have created an inherited document class, see the code below. The documents persists
I have created a class that extends IntentService, and I would like to start
I have created a class in F# that implements the IDisposable interface. The class
I have created a Windows Store class library. This contains some user controls and
Have created a small two tab app, then subclassed another view controller to create
I have created a simple javascript class using the 'function' technique. In the class
I have created a reusable class that fades in a loading message and indicator

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.