This is just about exactly the reason you don’t want to bother with getResource(), but should use getResourceAsStream() instead. The URI just isn’t as portable as it claims to be.
This is just about exactly the reason you don’t want to bother with getResource(), but should use getResourceAsStream() instead. The URI just isn’t as portable as it claims to be.