In general, I never had problems on any operating system with using a '/' as separator.
new File("/a/b/c.txt");
works at least on Unix, Windows and iSeries.
If you want to be correct, there's a constant 'File.separator', that holds the operating systems separator.
If you want to replace the backslash '\' in a string, remember that it is a special escape character:
String newString = str.replace("\\","/");
edit:
and remember, String is immutable.
str.replace("\\","/");
will not change the string, only return a new string with the replaced characters.