Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

invoking ms excel from app

 
shilpa reddy
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks ashu
Shilpa.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic