Search:

Type: Posts; User: Norm

Search: Search took 0.25 seconds.

  1. Re: images are loaded while using eclipse but i get NullPointerException in jar

    Are you saying the program in the jar file executes OK on one PC and has problems loading images on another PC?
  2. Re: images are loaded while using eclipse but i get NullPointerException in jar

    Nothing to do with a point class.
    I'll reword it: The path should refer to where there is a file.
  3. Re: images are loaded while using eclipse but i get NullPointerException in jar

    Sorry, what is "path point"? What I was talking about was the paths as you see them in a jar file using a tool like zip file tool.

    I see now. I'll reword it: The path should point to where there...
  4. Re: images are loaded while using eclipse but i get NullPointerException in jar

    You need to have the path point to where there is a file. It is not something that can be done remotely on this forum. You need to try many different combinations until you find the one that works.
  5. Re: images are loaded while using eclipse but i get NullPointerException in jar

    Is the class in a package? Did you try it with the leading / on the path as copeg suggested?
    Check the spelling and the path for correctness.
  6. Re: images are loaded while using eclipse but i get NullPointerException in jar

    Does the URL returned by getResource() look correct? Add a println() call that prints it.
  7. Re: images are loaded while using eclipse but i get NullPointerException in jar

    If the images are in the jar you need to access them as resources not files.
    You can use a zip utility to look at the contents of a jar file to verify that the path to the images is correct.
Results 1 to 7 of 7