I google how below code loads the resource
Abc.class.getClassLoader().getResourceAsStream(\"abc.txt\")
and find that it searchs the resource in all jar file and zip
For example, you can make a "resources" source folder, put files in it, then use Thread.currentThread().getContextClassLoader().getResourceAsStream("abc.txt");
I always use this method.