Loading Resource from classpath (Including jar files)


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

This gives the absolute patch to config.xml file


Copy this code and paste it in your HTML
  1. String fileName = Thread.currentThread().getContextClassLoader().getResource("config.xml").getFile;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.