Here you can find the source of getLog4jPropertiesLocation()
public static URL getLog4jPropertiesLocation()
//package com.java2s; /*//w ww.ja v a 2s. c om * Copyright (C) 2011 Saarland University * * This file is part of Javalanche. * * Javalanche is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Javalanche is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser Public License for more details. * * You should have received a copy of the GNU Lesser Public License * along with Javalanche. If not, see <http://www.gnu.org/licenses/>. */ import java.net.URL; public class Main { private static final String LOG4J_PROPERTIES = "log4j.properties"; public static URL getLog4jPropertiesLocation() { URL systemResource = ClassLoader .getSystemResource(LOG4J_PROPERTIES); return systemResource; } }