Have a look at the Apache Commons Exec, http://commons.apache.org/exec/ for a library that handles external processes.
2009/6/19 Alexey Zinger <[email protected]>: > The process object you get shouldn't cost the JVM much in terms of > resources. Remember that you have to read the process' output fully for it > to execute correctly! I've been bit by that before. Still, what you could > do is make the process you run be a shell/batch script that spawns off the > real thing. You'll have to have make your Java code be somewhat aware of > the OS it's running under, but if you're interfacing with a native > executable, you probably already are. > > Alexey > 2001 Honda CBR600F4i (CCS) > 1992 Kawasaki EX500 > http://azinger.blogspot.com > http://bsheet.sourceforge.net > http://wcollage.sourceforge.net > > > ________________________________ > From: Ido Ginodi <[email protected]> > To: The Java Posse <[email protected]> > Sent: Thursday, June 18, 2009 4:50:25 AM > Subject: [The Java Posse] Running external executable from within java code > > > Hi, > I am trying to run an executable from within java. I have tried the > regular technique of creating a Process object, and the problem is > that the external I am trying to rum is heavy in terms of memory, so > it is never loaded properly. > > do you know a way to run an external exe, in a way that it will be > independent of the invoking process? > > Cheers, > Ido > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaposse?hl=en -~----------~----~----~----~------~----~------~--~---
