I have an application through which I create a PDF and then launch it, using the following code:
PdfWriter.getInstance(document, new FileOutputStream(file_name); document.open();
Post this, I create my PDF and launch it using:
Process p = Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler "file_name");
Problem is, when I deploy my application in Tomcat and try to launch the PDF on some other machine but not where my tomcat server is deployed using the IP Address (http://IPAddess:8080/), the PDF gets launched on the server but not on the machine I am accessing the application.
Kindly Help! I am completely confused!