wood burning stoves 2.0
The moose likes Beginning Java and the fly likes Call executable program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Call executable program" Watch "Call executable program" New topic

Call executable program

Morley Yeung

Joined: Jun 19, 2001
Posts: 8
How to call external program, such as executable program from Java. Is it nessary to make library such as dll to call the program?
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
You can use something like:
Process p = Runtime.getRuntime().exec("notepad.exe OpenMe.txt");

"JavaRanch, where the deer and the Certified play" - David O'Meara
It is sorta covered in the JavaRanch Style Guide.
subject: Call executable program
It's not a secret anymore!