|
this.getClass().getClassLoader().getResourceAsStre am("relativePathInJar") is your friend.
So say the file is config.xml in the conf directory inside your jar file. The command will be:
this.getClass().getClassLoader().getResourceAsStre am("conf/config.xml");
|