I\'m trying to replace the beginning of a string with backslashes to something else. For some weird reason the replaceAll function doesn\'t like backslashes.
Str
jarPath = jarPath.replaceAll("\\\\\\\\xyz\\\\abc", "z:");
For each '\' in your string you should put '\\' in the replaceAll method.
replaceAll