Load resources in a jar-compatible manner.