Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic