Here you can find the source of findResource(String name)
public static URL findResource(String name)
//package com.java2s; //License from project: Apache License import java.net.URL; public class Main { /** XXX Abstraction around how we find resources, do something smarter in the future. */// w ww . j av a 2 s.c o m public static URL findResource(String name) { return ClassLoader.getSystemResource(name); } }