Might want to use http://docs.oracle.com/javase/1.4.2/docs/api/java/io/File.html#pathSeparatorChar here.