Loading Resource from classpath


/ Published in: Java
Save to your folder(s)

This gives the absolute path for the file log4j.properties


Copy this code and paste it in your HTML
  1. String fileName = getClass().getResource("/log4j.properties").getFile();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.