Ask Your Question

Revision history [back]

No idea if this can help you out, but I have found some code on the internet, which seems to help you get resources from a jar file.

Toolkit tk = Toolkit.getDefaultToolkit(); 
URL url = getClass().getResource("path/to/img.png"); 
Image img = tk.createImage(url); 
tk.prepareImage(img, -1, -1, null);

Found it on this link:

http://translate.googleusercontent.com/translate_c?depth=1&ei=q2dTUdn7DKnJ0AXZv4CICA&hl=nl&prev=/search%3Fq%3DopenCV%2Bresources%2Binto%2Bjar%2Bfile%26hl%3Dnl%26biw%3D1440%26bih%3D773&rurl=translate.google.be&sl=en&u=http://stackoverflow.com/questions/2393194/how-to-access-resources-in-jar-file&usg=ALkJrhiexrVa5uRlPATjB4c3AsqKTUeZXw