Return to Snippet

Revision: 21019
at December 2, 2009 02:49 by arunpjohny


Initial Code
String fileName = getClass().getResource("/log4j.properties").getFile();

Initial URL


Initial Description
This gives the absolute path for the file log4j.properties

Initial Title
Loading Resource from classpath

Initial Tags
java

Initial Language
Java