Posted By

arunpjohny on 12/02/09


Tagged

java load-resouce


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

kubaitis


Loading Resource from classpath


 / Published in: Java
 

This gives the absolute path for the file log4j.properties

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

Report this snippet  

You need to login to post a comment.