• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Opening an external program

 
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
 
Bartender
Posts: 3225
34
IntelliJ IDE Oracle Spring Chrome Java
  • 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:

 
Not so fast naughty spawn! I want you to know about
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!