MAKG wrote:Very pretty.
But it won't parse my FlightGear install.
Why? It seems you hardcoded your path separator as "\." That's not portable. It gets "file not found" errors, even though the path is verified correct and the files exist where they should.
I've a Debian Linux install. Paths are separated by '/' in all Unix variants.
And in this case, the proper default is UNIX as it's trivial to support proper "/" on windows : MS does, out of the box on many post NT versions of their windows OS. In vista/xp/2k you can even use "/" in cmd.exe (and obviously Power Shell), so there is no reason at all to use "\" in Java.
None whatsoever

MS still displays with "\" to maintain compatibility with the trillions of msdos style batch files still in use.
Basically, you should be able to simply change "\" in your code to "/" that parses directories, and your Java app should run everywhere as advertised.