Here you can find the source of getResourceBase()
public static URL getResourceBase()
//package com.java2s; // Use is subject to license terms. import java.net.URL; public class Main { private static final String RESOURCE_BASE_DIR = "resource/"; private static ClassLoader classLoader = null; /**/*from w ww . jav a 2 s . c o m*/ * Gets the Resource Base (resource directory). This is needed * for setting things like setBase() on HTML docuements. */ public static URL getResourceBase() { if (classLoader == null) { return null; } return classLoader.getResource(RESOURCE_BASE_DIR); } }