Search:

Type: Posts; User: Teuthoidea

Search: Search took 0.12 seconds.

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

    problem solved - i thought that it'll load images from the inside of jar but it just has to be in proper folder to run :) thanks for help
  2. Re: images are loaded while using eclipse but i get NullPointerException in jar

    strange thing - my friend said that it's working while i have tested it at my pc (win7) and then at winxp at virtualbox both failed, moreover he send me his game and i images there were not loading...
  3. Re: images are loaded while using eclipse but i get NullPointerException in jar

    i have seen smth like using " new point () " don't remember arguments of it and whole thing was related to my problem but seemd to be hard at all
  4. Re: images are loaded while using eclipse but i get NullPointerException in jar

    i'll be glad if you give me an example with path point i've seen it earlier today but cant google it out now
  5. Re: images are loaded while using eclipse but i get NullPointerException in jar

    hierarchy of packages : 1275
  6. Re: images are loaded while using eclipse but i get NullPointerException in jar

    System.out.println(this.getClass().getResource("/gra/grafika/ramka.png"));

    this line prints null just like there's no such file

    also tested line from copeg
    and that's the results of running it...
  7. Re: images are loaded while using eclipse but i get NullPointerException in jar

    images are in location gra > grafika in jar file
  8. images are loaded while using eclipse but i get NullPointerException in jar

    As you can see I have tried various ways of loading images to my program,


    Image iiii = new ImageIcon("src/gra/grafika/ramka.png").getImage();
    //Image iiii = new...
Results 1 to 8 of 8