File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Launching external application - platform dependency? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Launching external application - platform dependency?" Watch "Launching external application - platform dependency?" New topic

Launching external application - platform dependency?

Malte Wannerskog
Ranch Hand

Joined: Jan 06, 2011
Posts: 92


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!

OCPJP (310-065) - 88%
I agree. Here's the link:
subject: Launching external application - platform dependency?
It's not a secret anymore!