wood burning stoves 2.0*
The moose likes Java in General and the fly likes invoking ms excel from app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "invoking ms excel from app" Watch "invoking ms excel from app" New topic
Author

invoking ms excel from app

shilpa reddy
Greenhorn

Joined: Dec 12, 2000
Posts: 29
Hey,
I would like to invoke an app, for example ms excel from my java app in my actionListener. Any ideas on how to do this.
Thanks in advance,
Shilpa Reddy
Ashutosh Uprety
Ranch Hand

Joined: Nov 30, 2000
Posts: 39
This will serve ur purpose. Put any other exe in place of notepad. It will work too.
public class Exe {
public static void main(String[] args) {
try {
Runtime r = Runtime.getRuntime();
Process p = r.exec("Notepad");
}
catch(Exception e){
System.out.println(e);
}
}
}
Ashu
shilpa reddy
Greenhorn

Joined: Dec 12, 2000
Posts: 29
Thanks ashu
Shilpa.
 
jQuery in Action, 2nd edition
 
subject: invoking ms excel from app