Hi , I am using exec() to run external exe from servlet. The exe is a program which converts the Framemaker files having .mif extension to pdf for that it needs the Framemaker running. My problem is i am able to execute the exe but the exe cannot connect to Framemaker. when i execute from eclipse it connects to Framemeker but from Servlet it does not connect. I also tried using exec("cmd /c mif2pdf.exe") but still i have the same problem. can anybody please tell me how to do it. thanks in advance
connect to Framemaker means it uses the framemaker server to convert the mif files to pdf format. without Framemaker running it cannot convert the file.
Joined: Oct 31, 2007
here is my code Runtime rt = Runtime.getRuntime() ; Process p = rt.exec("c:\\mifpdf\\MIF2PDF Quag033 C:\\mifpdf\\MicroSeqFastFungalPrtcl_Title.mif"); in this MIF2PDF is the exe file which accepts two parameters 1st parameter is the name of the machine where framemaker is running in this case its my local machine Quag033 and the 2nd parameter is the full path of the MIF file.
In an effort to help you get the most from our forums, we've compiled a list of tips for asking questions here. You can find the list in our FAQ section here. In particular please see: TellTheDetails.
Telling us that your application is throwing a NullPointerException but not posting the line of code where it's occurring or, at least, posting the stack trace (as you've already been asked to do) so that we can ask you what's on line xxx makes it virtually impossible for us to help you.
Put yourself in our shoes. How would you help someone who asks you what's wrong with a program if it's throwing a NullPointerException?
Try to give us as much relevant information as possible, including code snippets and stack traces.