That getSystemResource returns an URL. Don't try to get path, remove parts or other tricks. An URL contains a resource specification in a particular format (especially for resources in jars!) and...