-
Running external programs
i know that to run an external program you have to use the Runtime.exec() method, but i'm having some difficulty with it. i've created a runtime environment variable using the getRuntime() method and used this to call the exec() method, specifically the exec(String command, String[] environment, File dir) method but when it executes it gives an IOException that's something about the String command and error=0 (i can't recall the exact message)
So my question basically is, if i'm doing it wrong, how do u implement the Runtime class with the exec method and what exactly is the String command ie the DosPrompt cmd to run the program or what?
-
exec information
Hi Toffie,
This is covered in the JDC Tech Tips February 15, 2000
which you can view at
http://java.sun.com/developer/TechTi...0209.html#tip2
Hope this helps
Hope this helps
Graham
Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, and if they get mad, you are a mile away and you have their shoes ;-)
http://www.grahamrobinsonsoftware.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks