Hi amit,
I have add it but problem is different:
String name=null;
InputStream is = getClass().getResourceAsStream("log4j.properties");
Properties p = new Properties();
try {
p.load(is);
name= p.getProperty("log4j.properties");
} catch (IOException e) {
System.out.println("error loading props...");
}
console error:
log4j:ERROR Ignoring configuration file [null].
means NullPointerException