Not sure if there is a best (probably this is a candidate for worst , because it's pretty hack), but it seems like a capable mechanism. This results in the need to use getResource , reading the jar directly.
public class NavelGazing { public static void main(String[] args) throws Throwable {
I added a file called Sjælland.txt , and it successfully received the entry.
Oldcurmudgeon
source share