File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Launching external application - platform dependency?" Watch "Launching external application - platform dependency?" New topic
Author

Launching external application - platform dependency?

Malte Wannerskog
Ranch Hand

Joined: Jan 06, 2011
Posts: 92

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!


OCPJP (310-065) - 88%
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Launching external application - platform dependency?
 
Similar Threads
Launching Acrobat Reader
Find PID from port
Starting an application from Java and not wait for the return
Runtime interfaces
Launching Internet Explorer from a Java App