Just adding to the pool of knowledge:
Has anyone used IL.ilLoadFromStream() ? I was tryng to use it and thought it was crashing but it turns out it was taking about 30 secs to load my image from a jar file.
I now use this code , which runs fine, instead :
InputStream is = new BufferedInputStream( getClass().getResourceAsStream(path));
ByteBuffer bb = ByteBuffer.allocateDirect(is.available()).order(ByteOrder.nativeOrder());
byte ba = new byte[(int)is.available()];