File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Head First Android this week in the Android forum!
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
I agree. Here's the link:
subject: Call executable program
It's not a secret anymore!