Package: openjdk-8-jre
Version: 8u40~b22-2
Severity: normal

I have both openjdk-7-jre and openjdk-8-jre installed on my system, and when I
right-click on a JAR file (e.g. in Nautilus), I have two options under the
"Open With" submenu:  "OpenJDK Java 7 Runtime" and "OpenJDK Java 8 Runtime".
I'd expect that choosing the first of these would run the program using OpenJDK
7, and that the second would run the program using OpenJDK 8.

However, both options really just execute /usr/bin/java, so they both use
whichever Java version is configured as the default via the alternatives
system.  On my system, that's currently OpenJDK 7, so right-clicking a JAR and
choosing "Open With -> OpenJDK Java 8 Runtime" causes it to actually run with
OpenJDK 7.  I could change the default using update-alternatives, but then
right-clicking a JAR and choosing to run it with OpenJDK 7 would actually run
it with OpenJDK 8.  Either way, this is a very counterintuitive behavior.

I'd suggest changing the .desktop files
(/usr/share/applications/openjdk-7-java.desktop,
/usr/share/applications/openjdk-8-java.desktop) to refer to a specific Java
binary (e.g. /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java) so that it runs
the desired version regardless of where /etc/alternatives/java (and thus
/usr/bin/java) points.  Or, if version-specific choices aren't desirable or
feasible, there should be just one .desktop file for launching /usr/bin/java,
shared among all JRE packages, and it shouldn't specify a version number in its
name.



-- System Information:
Debian Release: 8.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages openjdk-8-jre depends on:
ii  libasound2                1.0.28-1
ii  libatk-wrapper-java-jni   0.30.5-1
ii  libc6                     2.19-13
ii  libgif4                   4.1.6-11
ii  libgl1-mesa-glx [libgl1]  10.4.2-2
ii  libgtk2.0-0               2.24.25-1
ii  libjpeg62-turbo           1:1.3.1-11
ii  libpng12-0                1.2.50-2+b2
ii  libpulse0                 5.0-13
ii  libx11-6                  2:1.6.2-3
ii  libxext6                  2:1.3.3-1
ii  libxinerama1              2:1.1.3-1+b1
ii  libxrandr2                2:1.4.2-1+b1
ii  openjdk-8-jre-headless    8u40~b22-2
ii  zlib1g                    1:1.2.8.dfsg-2+b1

Versions of packages openjdk-8-jre recommends:
ii  fonts-dejavu-extra  2.34-1
ii  libgconf2-4         3.2.6-3
ii  libgnome2-0         2.32.1-5
ii  libgnomevfs2-0      1:2.24.4-6+b1

Versions of packages openjdk-8-jre suggests:
pn  icedtea-8-plugin  <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to