Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

problems with Runtime.getRuntime().exec()

  Asked By: Marty    Date: Dec 20    Category: Java    Views: 999
  

we're running into some problems when trying to invoke a C++
executable from the Java GUI. when we run the exeutable from the
command line in unix, it completes in 3 minutes. however, when we
exec() the same program from the Java GUI, it takes 10 minutes.. we've
threaded our input and error streams from the process, and it's not
that the process is deadlocking or anything, it's just executing much
slower when executed thru the Java GUI. we've done some prstat on the
process and it gets the same CPU % no matter how its kicked off, but
it's almost like the Process when kicked off from the Java GUI is
sharing its resources with the JVM. we even created a simple Java
program that just does a Runtime.getRuntime().exec() in the main()
with the same results..

anyone experience annything similar before?

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on problems with Runtime.getRuntime().exec() Or get search suggestion and latest updates.




Tagged: