I am trying to access a PDF file on shared windows folder from a servlet running on UNIX server. The path seems to be correct x:\shared\x.pdf but when servlet tries to access this file it throws FileNOtFoundException even though file is there.. Any suggestions. Thanks
Did you try using Microsoft Windows UNC path name, like \\computer\shared\x.pdf?
Joined: Mar 22, 2005
Did you actually read and consider the replies you got? David is spot on: the server can't possibly know what "x:\shared\x.pdf" is, because that path has meaning only locally on the Windows machine. That's why you need to use jCIFS.