I am starting to use MyEclipse to do remote debugging of a Tomcat7 application. It seems to work quite well...with one peculiar behavior.
The remote Tomcat7 application is running under Linux; MyEclipse is running on my PC. The problematic
Java class attempts to open a file, and it is SUPPOSED to open it on the server. The problematic method is:
The problem is that
file.exists() and
file.canRead() are both returning false for a filePath that exists, and is readable. Curiously, when it executes
File file = new File(filePath); , all the forward slashes in
filePath are now \\, as though it thinks it is opening the file under Windows, and in the calling method,
File.separator is \\, not /. I don't think this is just a matter of MyEclipse misdisplaying the file separators, because the File method is claiming that the file does not exist. Is there perhaps something that needs to be set somewhere to tell MyEclipse that when remote debugging, all file references are also remote?