Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6799791

Ubuntu: Desktop....open("myPdfFile.pdf") doesn't open with correct program

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 6u10
    • client-libs
    • x86
    • linux

      FULL PRODUCT VERSION :
      java version "1.6.0_10"
      Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
      Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Ubuntu 8.10

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Installed adobe reader from the multiverse extra repository,
      right-clicked on a PDF file and told it to open all PDF files with adobe reader

      A DESCRIPTION OF THE PROBLEM :
      Ubuntu 8.10 out of the box uses document viewer 2.24.1 to open PDF files.
      I added the multiverse ubuntu repo,
      apt-get installed acroread,
      and configured PDF files to open with that adobe reader.
      Yet Desktop.getDesktop().open("myPdf.pdf") still opens it with the document viewer.

      Thunderbird etc use the correct program for opening a pdf file: adobe reader.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      see description

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Adobe reader opened.
      ACTUAL -
      Document viewer opened.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      Desktop.getDesktop().open("myPdf.pdf");
      ---------- END SOURCE ----------

            denis Denis Fokin (Inactive)
            ryeung Roger Yeung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: