The Artima Developer Community
Sponsored Link

Java Answers Forum
Runtime.exec() .. another question.

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Robert Bouy

Posts: 1
Nickname: rbouy
Registered: Aug, 2004

Runtime.exec() .. another question. Posted: Aug 5, 2004 11:06 AM
Reply to this message Reply
Advertisement
Hi all,

Using Runtime.exec I successfully start a Windows command file. However, inside the command file a java program is launched, and this launch fails with a "file not found" error from the command file to stderr. When the command file is executed directly from a command window it works appropriately (i.e. no failure).

I thought there may be some escoteric interaction between Runtime.exec and the command shell which caused environment updates from the command file to not be preserved inside of the command shell created by Runtime.exec. Anyway any suggestions on what is going on would be appreciated.

Topic: java.lang.NullPointerException returned from webservice Previous Topic   Next Topic Topic: java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use