← Back to team overview

openjdk team mailing list archive

[Bug 1574879] [NEW] Java Desktop.browse not supported on Kubuntu 16.04

 

Public bug reported:

The Desktop.browse functionality of Java is not supported on the Kubuntu
16.04 level of the KDE desktop.  It was supported in earlier levels.

With this support no longer available, a Java application can no longer
activate the system's browser to display the already-installed HTML help
files for the application, making the context-sensitive help
functionality useless.

Here is the Java code snippet where the code attempts to activate the
online help:

        if (Desktop.isDesktopSupported())
        {
            Desktop desktop = Desktop.getDesktop() ;
            if (desktop.isSupported(Desktop.Action.BROWSE))
            {
                try
                {
                    desktop.browse(new URI(url)) ;
                }
                catch (Exception e)
                {
                    String error = "Problem creating URI to access documentation:\n" + e.getMessage() ;
                    reportError(error, true) ;
                }
            }
            else
                reportError("Desktop.browse not supported on this system.", true) ;
        }

When this code is executed, the "Desktop.browse not supported on this
system." error message is displayed, rather than activating the user's
Internet browser to display the HTML help file already installed in the
user's file-system.

In prior releases of Kubuntu, this has always worked.  I expected it to
work on 16.04 (as it does on the other 'flavors' of Ubuntu 16.04), but
it is not supported in the KDE desktop of Kubuntu 16.04

I am using Kubuntu 16.04.

In prior releases of Kubuntu, the online help information was displayed
using the system's Internet browser, which was what I expected to
happen.

In this release, I instead got the "Desktop.browse not supported on this
system." error message, and the Internet browser was not activated to
display the already-installed (via Debian package) help information.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: openjdk-8-jre 8u77-b03-3ubuntu3
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: KDE
Date: Mon Apr 25 16:12:50 2016
InstallationDate: Installed on 2016-04-22 (3 days ago)
InstallationMedia: Kubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: openjdk-8
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: openjdk-8 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug xenial

** Summary changed:

- Java Desktop.browse not supported on Kubuntu 16.10
+ Java Desktop.browse not supported on Kubuntu 16.04

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-8 in Ubuntu.
https://bugs.launchpad.net/bugs/1574879

Title:
  Java Desktop.browse not supported on Kubuntu 16.04

Status in openjdk-8 package in Ubuntu:
  New

Bug description:
  The Desktop.browse functionality of Java is not supported on the
  Kubuntu 16.04 level of the KDE desktop.  It was supported in earlier
  levels.

  With this support no longer available, a Java application can no
  longer activate the system's browser to display the already-installed
  HTML help files for the application, making the context-sensitive help
  functionality useless.

  Here is the Java code snippet where the code attempts to activate the
  online help:

          if (Desktop.isDesktopSupported())
          {
              Desktop desktop = Desktop.getDesktop() ;
              if (desktop.isSupported(Desktop.Action.BROWSE))
              {
                  try
                  {
                      desktop.browse(new URI(url)) ;
                  }
                  catch (Exception e)
                  {
                      String error = "Problem creating URI to access documentation:\n" + e.getMessage() ;
                      reportError(error, true) ;
                  }
              }
              else
                  reportError("Desktop.browse not supported on this system.", true) ;
          }

  When this code is executed, the "Desktop.browse not supported on this
  system." error message is displayed, rather than activating the user's
  Internet browser to display the HTML help file already installed in
  the user's file-system.

  In prior releases of Kubuntu, this has always worked.  I expected it
  to work on 16.04 (as it does on the other 'flavors' of Ubuntu 16.04),
  but it is not supported in the KDE desktop of Kubuntu 16.04

  I am using Kubuntu 16.04.

  In prior releases of Kubuntu, the online help information was
  displayed using the system's Internet browser, which was what I
  expected to happen.

  In this release, I instead got the "Desktop.browse not supported on
  this system." error message, and the Internet browser was not
  activated to display the already-installed (via Debian package) help
  information.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: openjdk-8-jre 8u77-b03-3ubuntu3
  ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
  Uname: Linux 4.4.0-21-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  CurrentDesktop: KDE
  Date: Mon Apr 25 16:12:50 2016
  InstallationDate: Installed on 2016-04-22 (3 days ago)
  InstallationMedia: Kubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
  SourcePackage: openjdk-8
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-8/+bug/1574879/+subscriptions


Follow ups