I'm trying to write some java code that accesses all files in a folder. The idea is to create a jar that operates on all files in the folder the jar is placed in. As an example, say I want a jar that generates a file which lists all of the files in the folder the jar is placed in. I've tried to google and look at the api, but I'm not sure where to start out. Any ideas?