The files in jar files are treated as "Resources". you need to access them as a classpath resource, regular File access methods does not work there. However, it is very easy. check the
javadoc of "Class.getREsourceAsStream()". So, what you need is:
- the location-name of the resource in the jar (you will need to add a "/" symbol when writing the name.)
- How will you get the Class? try finding this out first
- This is suppose to return a strem. you already have the code for Scanner or BufferedImage. check their constructors if any accepts an inputstream..
write again if there is a problem.