You should probably use File.separatorChar instead of "/" unless File does this automatically when constructed?