Replace deprecated File.toURL() by File.toURI().toURL()