naresh pokuri wrote:what is the nature of Classloader, when a JAR file contains a dir named pref folder with .properties files and other xml files.
can we get reference to that files as stream by passing file names to ClassLoader.getReasourceAsStream() method.
Yes, we can.
You could pack to jar file whatever you want - images, properties, icons, text files, other jars, even database files.
If you want to retrieve resources from your application's jar file, try this example:
If you want to read file from other jar, try this: