Whatever little I understand from above problem, see if the below steps help: 1. Get the classpath settings at run-time. You can use System.getProperty ("java.class.path"). This gives the complete filepaths. 2. Find all the files with .xml extension as File objects in the above filepaths 3. Process the files that match your criteria i.e. File names having "table" in it.
You can try the same approach for you second question also.
You can't wake a person who is <b><i>pretending</i></b> to be asleep.<br />Like what <b>"it"</b> does not like - <i> Gurdjieff </i>