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

Win a copy of Android Security Essentials Live Lessons 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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Call executable program
Similar Threads
How to call an executable (.exe) from java
Can a servlet call an EXE
how to convert java file in to exe. file ..........
screen/computer lockout
How to run an executable placed on linux sever on a host with java program