This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

Executing exe using getRuntime.exec() through servlet

 
Sanjaya Sugiarto
Ranch Hand
Posts: 229
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello everyone,

I have a problem. I need to execute an exe. I have tried with a simple main method and it works like a charm. But as I try to integrate into Tomcat, it hangs. The program uses pdftohtml to convert a pdf into html.

Here is the code:


It hangs just before the waitFor().
Have you guys any idea how to solve this?
Many thanks.

PS: I tried this with tomcat bundled with Netbeans 5.
[ April 09, 2006: Message edited by: Sanjaya Sugiarto ]
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
I just answered this question in the Servlets forum. It is considered impolite to post the same question to multiple forums. There is nothing Tomcat specific in this question and really it has nothing to do with servlets..
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic