Here you can find the source of getSystemResource(String path)
Parameter | Description |
---|---|
path | The resource path. |
public static URL getSystemResource(String path)
//package com.java2s; //License from project: Apache License import java.net.URL; public class Main { /**/*from w w w . ja v a 2 s . c o m*/ * Returns a URL from the path used to load classes. Relative paths will start * at the class loader directory. * * @param path The resource path. * @return A URL representation of the resource. */ public static URL getSystemResource(String path) { return ClassLoader.getSystemResource(path); } }