Using resources from inside .jar package.

When we pack all our java classes, libraries and resources in a single .jar in order to share our application, if our code has references to resources using absolute or relative paths to the files in our working directory like for example: ImageIcon image = new ImageIcon('/gui/images/logo.png');ImageIcon image = new ImageIcon('/gui/images/logo.png'); We won't be able […]

Posted on October 28, 2011 at 10:54 by Samuel · Permalink · Leave a comment
In: Java, Languages · Tagged with: ,