Executing native processes from Java
This is kind of a coincidence. Today I got contacted by a friend, wondering how to run a native Windows program from within Java. I said as I usually do: Google it
. Not liking to get that served myself, I did follow up with some real information. I don’t like being a RTFM slinging jerk, but it is fun to sting people you know.
Googling turned up a useful guide to how you can do this, both using Runtime.getRuntime().exec(”command”);
and with 1.5’s ProcessBuilder
.
Then comes the coincidence; just as I’m about to leave for home, I scan my feeds - at the top of my Programming
folder, Patrick Kua has the following entry: Executing native processes in Java on Windows.
About this entry
- You’re currently reading “Executing native processes from Java,” an entry on Journal of Tormod Haugen
- Published by: tormodh
- Published at: September 17, 2008 - 15:31 CET
- Category: Java
- Tags: coincidence, exec, execute, howto, Java, kua, native process, ProcessBuilder, Runtime, windows
- Related Posts:
- Managing Memory in Java
- iTunes stole my podcasts
- Firefox not really default browser in Vista
- Specifying what to get, or post
- Trouble with updated iTunes 7
No comments
Jump to comment form | comments rss | trackback uri