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  

Comments

RSS Icon Subscribe to comments
Posted By: Jacky888 on August 2, 2018

holo launcher download app topthemestech

You need to login to post a comment.