I want to open a PDF file from a jsp. The jsp and the PDF are in the same directory. I am using the following piece of code:
if (Desktop.isSupported()) { try
Have you tried this? I just got this from google, so I dunno if it will work.
Process p = Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler c:\\Java- Interview.pdf"); p.waitFor();