Windows support both / and \. Even mixed; c:\\drive/path\x.bat resolves fine in Windows.
*nix only supports /.
In case some other OS only support £, Path.separator should be used.
I know that java on Windows supports both / and \.
But what about when you leave the java space?
I'm asking because an active project of mine at work is using Arquillian Tomcat Managed containers and it runs fine on various unixes.
However, a colleague tried to run it on his PC and it did not work. Unfortunately it was at the end of the day so I haven't been able to troubleshoot it.
It seems that the tomcat-users.xml file was not picked up.
And I assume you mean file.separator rather than path.separator.
My experience is both work on Windows, regardless of Java or not.
But the correct thing to use is the provided System.property or File.separator.