It's not a secret anymore!
The moose likes Java in General and the fly likes Launching PDF files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Launching PDF files" Watch "Launching PDF files" New topic

Launching PDF files

Kate Zoy
Ranch Hand

Joined: Feb 11, 2004
Posts: 33
I need my program to launch the default PDF application with a sepcific file from whatever system it is running on. I've been using Runtime.getRuntime().exec(); but I've been told this command will only work on my specific computer, or a very few if lucky. How do I go about launching another program from mine? I've never done this before ^_^"
Thanks so much!
Joe Ess

Joined: Oct 29, 2001
Posts: 9190

This isn't an IO question, so let's move it to Java In General (intermediate) where there's more traffic.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Launching PDF files
It's not a secret anymore!