Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Opening an external program

 
Randy Miller
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys!

So,basically I am developing an application, working with XML. Now I am trying to figure out a way to open an external program on my laptop, in this case UltraEdit, via Eclipse, as soon as I click on a button in my GUI. And it would be even better if I knew how to directly open a file with this external program, cklicking on my button.
I searched for some time on the internet but I just couldn´t find the right solution.
Would be awesome if one of you could help ;)

Greetings,

Randy
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There have been similar queries here before, you can search for Runtime.getRuntime() And there another important article explaining the pitfalls of Runtime.exec().

You can also look at Apache Commons Exec API which wraps around the Java implementation.
 
Randy Miller
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mohamed!

Thanks for your reply!I figured it out and it works just fine
Here,for everybody who´s interested:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic