Access resources from another jar file
问题 I have a simple structure: A data jar file which contains a batch of data, and a service jar file, which runs a service using the data. To make the data easy to replace, I have them separate, and service.jar's classpath contains the directory which data.jar is in. Within service.jar, I use getResource to load the data files. This works if the data files are directly within the folder, but fails when they are inside data.jar; This fails: all + globalclasspath | + data.jar | + mine.properties +