I have a Java project of the following structure that contains a jar file in the src directory:
src
|-code
|-Main.java
|-jars
|-test.jar
The test.jar file has some code but also contains an image file called img0.png at the top-level of the jar.
I would like to retrive this in my Main.java class. I was told using the ServiceLoader class is the best way to go about doing this. Can anyone please provide me some tips on this?