← Back to team overview

openjdk team mailing list archive

Bug#859138: java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!

 

Package: openjdk-8-jre-headless
Version: 8u121-b13-4
Severity: normal

tglase@tglase-nb:~ $ cat >testcase.java <<\EOF
import java.awt.Desktop;
import java.net.URI;

public class testcase {
        public static void main(String[] args) {
                try {   
                        Desktop.getDesktop().browse(new URI("http://www.mirbsd.org/";));
                } catch (Exception e) {
                        System.out.println(e);
                }
        }
}
EOF
tglase@tglase-nb:~ $ javac testcase.java
tglase@tglase-nb:~ $ jar -cvfe testcase.jar testcase testcase.class
added manifest
adding: testcase.class(in = 686) (out= 448)(deflated 34%)
tglase@tglase-nb:~ $ java -jar testcase.jar
java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!


This works on Windows®, and some upstream author is now
requiring this unfortunately, reporting it also works
on e.g. Debian-derivate-that-cannot-be-named.

-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages openjdk-8-jre-headless depends on:
ii  ca-bundle [ca-certificates-java]  20170309tarent1
ii  java-common                       0.58
ii  libc6                             2.24-9
ii  libcups2                          2.2.1-8
ii  libfontconfig1                    2.11.0-6.7+b1
ii  libfreetype6                      2.6.3-3+b2
ii  libgcc1                           1:6.3.0-10
ii  libjpeg62-turbo                   1:1.5.1-2
ii  liblcms2-2                        2.8-4
ii  libnss3                           2:3.26.2-1
ii  libpcsclite1                      1.8.20-1
ii  libstdc++6                        6.3.0-10
ii  libx11-6                          2:1.6.4-3
ii  libxext6                          2:1.3.3-1+b2
ii  libxi6                            2:1.7.9-1
ii  libxrender1                       1:0.9.10-1
ii  libxtst6                          2:1.2.3-1
ii  multiarch-support                 2.24-9
ii  util-linux                        2.29.2-1
ii  zlib1g                            1:1.2.8.dfsg-5

openjdk-8-jre-headless recommends no packages.

Versions of packages openjdk-8-jre-headless suggests:
ii  fonts-dejavu-extra                 2.37-1
pn  fonts-indic                        <none>
ii  fonts-ipafont-gothic               00303-16
ii  fonts-ipafont-mincho               00303-16
pn  libnss-mdns                        <none>
pn  ttf-wqy-microhei | ttf-wqy-zenhei  <none>

-- no debconf information

Follow ups