I am trying to get the compilation time of the runnable JAR file I am exporting from Eclipse. One way to do this would probably be to get the modification time of the META-INF/MANIFEST.MF file. Unfortunately I can't seem to find a way to get this information (I know how to read the manifest itself using getResourceAsStream("/META-INF/MANIFEST.MF")
, but I can't seem to be able to read its modification time).
Has anybody some insight on how to do it?
ClassLoader.getSystemResource(rn)
withcl.getClassLoader().getResource(rn)
in case the class was not loaded using the system classloader – Daugavpils