Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.10 seconds.

  1. Re: Program running okay in Eclipse, not running okay when exported as JAR.

    I've never been able to access compressed content (such as the resources in a jar) using URLs. I have always had to use Streams. I assume because the URLs can't decompress the files or something. I'm...
  2. Re: Program running okay in Eclipse, not running okay when exported as JAR.

    Ok. Tell me how that goes. I'm pretty sure that jars do not like you accessing their resources with anything other than Streams. URL is not a Stream, but accessing the Image with the ImageIO.read()...
  3. Re: Program running okay in Eclipse, not running okay when exported as JAR.

    Have you tried using ImageIO?


    BufferedImage cardIconImage = ImageIO.read(this.getClass().getResource(iconName));
    return new ImageIcon(cardIconImage);
Results 1 to 3 of 3