Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Launching external application - platform dependency?

 
Malte Wannerskog
Ranch Hand
Posts: 92
Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am writing an application which i want to start a second external application.
I know this can be achived with Runtime.getRuntime().exec(), for example:



However, i want the solution to be platform independat. For example, lets say i want my application to launch skype.
I dont know if its a windows or apple system that will launch my application, and i dont know where skype is installed.

How would you approach this?

Thanks in advance!
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic