Open a pdf in whatever the OS chooses

Hello,
I'm writing a program that must operate on both windows, unix, possibly mac os. Basically if Java runs on the machine, I'm assuming that it may be running my program. I've gotten by without having to worry about system things until now: I want the ability to launch whatever the system has as a pdf reader. I know how to use a runtime process to execute a given program. But what I want to do is just say, here is the pdf file to the OS, let the OS figure out how to open it, and have it then be opened for display.
Is this possible?

For those of you who may wonder this like I did and are looking for an example:
import java.awt.Desktop;
File help = new File("gfxcr_help.pdf");
Desktop.getDesktop().open(help);

Similar Messages

  • Sometimes (but not always), when I try to open a pdf document from the US bankruptcy court website, I get a window asking if I want to use Adobe Acrobat. After I click "yes", I get a bland screen.

    == Issue
    ==
    Firefox is having problems with certain web sites
    == Description
    ==
    Sometimes (but not always), when I try to open a pdf document from the US bankruptcy court website, I get a window asking if I want to use Adobe Acrobat. After I click "yes", I get a bland screen.
    == URL of affected sites
    ==
    http://
    == Troubleshooting information
    ==
    Firefox Version
    3.6.3
    Extensions
    Name
    Version
    Enabled
    ID
    Skype extension for Firefox 2.2.0.70 false
    Java Console 6.0.01 false
    Java Console 6.0.02 true
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows 7
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
    == Plugins installed
    ==
    *-Office Plugin for Netscape Navigator
    *Download and Print Plug-in DLL
    *Default Plug-in
    *Shockwave Flash 10.0 r45
    *Adobe PDF Plug-In For Firefox and Netscape

    Hi.
    Does this only open on that specific site?
    In any case, you may want to:
    - instruct Firefox to handle PDF files in a specific way by going into Tools > Options > Applications and selecting the option you want for the PDF files
    - reinstall Adobe Reader and its Firefox plugin
    - install another reader instead of Adobe Reader. I recommend Foxit Reader ( http://www.foxitsoftware.com/pdf/reader/ ), since it's free, VERY light, VERY fast, safe and also has a Firefox plugin (make sure you don't have both Adobe Reader plugin and Foxit Reader plugin enabled/installed at the same time in Firefox)

  • How do you open a new document from the template chooser?

    Hi There,
    Since upgrading to Yosemite, I can't find the option to open a new document from the template chooser. When I type in "template" in the help box it shows it under "file" But when I click on "File" I don't see that option.
    Basically, I'm trying to ask how do you access the templates in the new pages?
    Thanks so much

    Check your preferences and make sure Show Template Chooser is selected:
    Then just choose New from the File menu.

  • Accept the enduser license agreement when opening a pdf file in the internet

    I have launched adobe reader when opening a pdf file in the internet i get the following error message
    Bevor proceeding ou must first launch adobe Acrobat and accept the Enduser license agreement
    am user of a mac book pro

    Kaliber wrote:
    Before proceeding you must first launch Adobe Acrobat and accept the Enduser license agreement.
    And, did you do that?  The message will no longer occur once you opened Adobe Reader & accept the EULA.

  • Opening a pdf file from the internet.

    Everytime I try to open a pdf file from the internet a window pops up and tells me that my adobe reader has a problem or gives me a blank page.  I have ie 10, adobe reader XI and adobe acrobat 8 pro.  All this is on win 7.  When I installed the acrobat 8 pro it could not find the adobepdf.dll.  I searched the disc, and tried to direct the installation to it but it would not accept it.  What can I do to correct this issue?

    Yes, unlike earlier IE versions, IE10 has only one executable, but it can run in 32-bit or 64-bit mode.
    Some details: http://www.sevenforums.com/tutorials/280434-internet-explorer-10-enable-32-bit-64-bit-ie10 -windows-7-a.html

  • Firefox won't open a PDF link in the browser, screen just shows blank.

    Firefox won't open a PDF link in the browser, when I click on the link the screen just goes to a blank blue screen.

    If using a Mac, go to the Firefox Plugins and disable the Adobe Acrobat NPAPI Plug-in, Version 10.1.3. This is a recent plugin update, and as soon as it was installed I noticed that PDFs wouldn't download.
    Location: [Menu] Tools/Add-Ons/Plugins
    I don't know what other side-effects it can create, but it solved my problem.

  • After updating silverlight, i'm unable to open any pdf files in the system

    After updating silverlight, i'm unable to open any pdf files in the system

    According to your User Agent you posted this question using Internet Explorer 11 on Windows 8.1. Are you having a problem with Firefox? What Firefox version?
    You said you are having a problem opening PDF files on your system. Can you explain that better? Mozilla Support can help you with opening PDF files in Firefox, which uses a built-in PDF reader. Maybe one of these articles will help?
    * [[View PDF files in Firefox without downloading them]]
    * [[How to disable the built-in PDF viewer and use another viewer]]

  • Opening 2 PDF's with the same file name

    I have someone who has difficulty opening two PDF's with the same file name. They had a file open, then try to open another PDF document with the same file name as the original document, however it will not open (and no error displays) and reverts back to the "old" document. Any ideas?

    Are this diferent documents? What version of Adobe Reader?

  • When I try to open a pdf I get the following error "Acrobat failed to connect to a DDE server" what should I do?

    When I try to open a pdf I get the following error "Acrobat failed to connect to a DDE server" what should I do?

    I have not had this error before, but Google has numerous examples. Here are a couple:
    https://forums.adobe.com/thread/847438
    http://community.spiceworks.com/topic/134868-adobe-acrobat-fatal-error-failed-to-connect-t o-a-dde-server

  • When I open a pdf file on the net, I can only view page 1. How do I get to the other pages?

    When I open a pdf file on the net, I can only view page 1 and cannot move to page 2, 3, etc. How can I change pages?

    See [[Firefox keeps opening many tabs or windows]]
    You can have infinite tabs opening if you have selected Firefox as the application to handle a file if you get an ''Open with'' download window.
    Firefox should not be selected as the application to handle a file and you have to remove the action that is associated with that file type.
    You can delete [http://kb.mozillazine.org/mimeTypes.rdf mimeTypes.rdf] in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] to reset all actions or set that action in Tools > Options > Applications to 'Always Ask'.
    See http://kb.mozillazine.org/File_types_and_download_actions ("File handling in Firefox 3 and SeaMonkey 2" and "Reset Download Actions")

  • When I open a pdf in ibooks the music pauses, with te books it's ok, help me please

    Only with pdfs

    This particular file is a PDF Portfolio, which needs Flash to display correctly. When you open a PDF Portfolio in the Adobe Reader mobile it will open in list view to get around the fact that Flash isn't supported on iOS. So, it won't open properly in a native viewer on iOS only within the Adobe Reader.

  • Do I have to previously open a pdf to launch the batch OCR tool?

    In Acrobat X, I could launch the batch recognize text tool as a wizard from the basic menu you have when opening Acrobat without any file open. Now with XI, I first have to open whatever PDF then go to tools and choose recognize then more than one file. This is uncomfortable, I would much prefer to launch wizard and batch processing tool from the standard interfaces, without the need to open a PDF first. Am I wrong or missing something? Is there any workaround? Thank you.
    tiziano solignani, [signature deleted by host]

    Read this:
    http://forums.adobe.com/thread/1092826

  • Unable to open large PDF file from the Attachment list.

    Hi Gurus,
    Users had attached 10 PDF file in the work order attachment list and his supervisor is trying to open the PDF file from the work order attachment list and he is able to open 9 PDF files without any issue, but 1 PDF file is giving the error message as "Database error for <GET DATA FROM KPRO>" and then select ok, we are getting the below message.
    Window cannot find u201CC/Documents and Settings/b2m/SaoworkDir/5015851 Vendor data sheets B&P 2010 SDown XXX .PDFu2019. Make sure you typed the name correctly, and then try again. To search for a file, click the start button, and then click serch.
    Looks like this particular file is not transferring to the SAP work directory.
    Could you please check and suggest us as to how to fix it.
    Thanks & Regards,
    Srivas

    Hi,
    Thanks for your reply.
    We verified  your OSS notes it's not relevant to us Because our issue is while opening the PDF aatchement it is not transferring to my SAP Work Directory because of that reason we are getting the KPRO error. When I'm opening the other PDF files it's transferring to my SAP Work Directory and it's automatically open without any issue.
    Please check and suggest.
    Thanks,
    Srivas

  • Adobe Reader XI is not working. I have used the cleanup tool and reinstalled it. I try to open a .pdf file in the program the window will open and load all the tabs but I am never able to actually interact with them.

    I am unable to use adobe reader xi. I have tried to use the clean up tool and re install the reader. That doesn't seem to help. I go to open the pdf file in the reader and the window will load but I am not able to do anything past that point. Almost as if the program freezes once loaded I never get a not responding error until I open the task manager on the computer.

    Can you open Reader by itself?  If so, try disabling Protected Mode [Edit | Preferences | Security (Enhanced)].

  • When I try to open an PDF file in the Firefox browser, the file reconizes a HTML file instead of PDF.

    See question. The Adobe plugin is installed. It looks like Firefox attaches html to the file name.
    I click on link on internet. A screen appears that says:
    You have chosen to open (filename*.pdf) The icon for the file name shows an Internet Explorer icon. The it says: which is a: Acrobat Reader file. What should Firefox do with this file, you have two options: Open WIth and save file.

    " Help > Troubleshooting Information > Profile Directory: Open Containing Folder" . i can't find open containing folder in profile directory. it does give me the option to open the places.sqlite file using graphic converter. when i try that, graphic converter gives me a window saying that it can't be opened because it is corrupted or is not a file type supported by graphic converter.
    i appreciate your help with a workaround to get the old bookmarks. that works. however, the problem has morphed from that concern to why adobe reader [the default app.] won't open firefox .sqlite files. is the problem in adobe reader or firefox? also, how can i tell if the places.sqlite file is corrupt?
    i'm getting in over my head here and do appreciate your help.

Maybe you are looking for

  • Problem with Business Rules

    Hi, I just started with a simple Business rules sample. All the time only the first condition in the rule set seem to be executed and the result is same inspite of conditions not matching the first condition. Am I doing something wrong? Thanks, Prabu

  • Create new Personnel Area

    Hi Gurus, Need some help with creating a New personnel Area on HCM module. I know how to define and assign a Personnel Area. But need some further infomation on any other nodes that need to be modified when creating a new PA. Any help will be welcome

  • SQL Loader - MS Word data

    Hi All, I want to load MS word data using SQL Loader into my tables. It loads fine except for certain features like bullets and numbering gets loaded as junk characters. My sql loader version is Release 8.0.6.3.0. Please help. Hope I am clear. If not

  • I never answered security questions and now I can't buy anything on iTunes

    I got a new iphone and it never asked me to answer security questions. Now almost a year later it says I need to answer some to verify myself. so i have not been able to buy a thing, except free things, on itunes. Please help

  • MicroSD cards and E51

    Hi, Guys! Previous e51 was stollen, that's why I without any thinking ordered another one with the same configuration: e51 + 4 Gb Transcend MicroSD HC card class 6. And I was badly surprised when I have copied some music on this card and could not ev