Github messages for voidlinux
 help / color / mirror / Atom feed
From: classabbyamp <classabbyamp@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [ISSUE] [CLOSED] Icedtea Web using incorrect path to Java JRE
Date: Mon, 22 Jan 2024 20:10:43 +0100	[thread overview]
Message-ID: <20240122191044.0151523911@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48328@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 2239 bytes --]

Closed issue by CtrlC-Root on void-packages repository

https://github.com/void-linux/void-packages/issues/48328

Description:
### Is this a new report?

Yes

### System Info

Void 6.6.11_1 x86_64 GenuineIntel uptodate rrrmFFFFFFFFF

### Package(s) Affected

icedtea-web-1.6.2_2

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

No but previous instance of this bug (which was fixed and is now happening again) reported here:
https://github.com/void-linux/void-packages/issues/16835

### Expected behaviour

Launching a JNLP file with `icedtea-web` package `javaws` script correctly starts the Java application with the currently installed JRE.

### Actual behaviour

The `javaws` script uses a hard-coded path to an out of date JRE which is not available via any current packages so it fails to start the application:

```
alex@tartarus ~/downloads [1]> javaws launch.jnlp
/usr/bin/javaws: line 98: /usr/lib/jvm/java-1.8-openjdk/jre/bin/java: No such file or directory
```

Currently installed Java packages:

```
alex@tartarus ~/downloads [127]> xbps-query -s jdk
[*] openjdk-8u999_1           OpenJDK Java Development Kit (meta)
[*] openjdk-common-2_1        Common files for OpenJDK packages
[*] openjdk17-17.0.10+6_1     OpenJDK Java Development Kit (version 17)
[*] openjdk17-jre-17.0.10+6_1 OpenJDK Java Development Kit (version 17) - runtime components
[*] openjdk8-8u332b05_2       OpenJDK Java Development Kit (version 8)
[*] openjdk8-jre-8u332b05_2   OpenJDK Java Development Kit (version 8) - runtime components
alex@tartarus ~/downloads> xbps-query -s icedtea
[*] icedtea-web-1.6.2_2 Implementation of Java Web Start
```

I'm guessing that script needs to be updated to rely on the alternatives system in order to pick the currently selected JRE binary? Tagging @felix as the package maintainer.

### Steps to reproduce

1. Install the `icedtea-web` package.
2. Locate a JNLP file to test with. A public one is available here: https://cherry.dcs.aber.ac.uk/3dexperiment/launch.html
3. Download the JNLP file.
4. Attempt to run the JNLP file: `javaws launch.jnlp`
5. Observe the issue from the `Actual behaviour` section above.

  reply	other threads:[~2024-01-22 19:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-22 18:03 [ISSUE] " CtrlC-Root
2024-01-22 19:10 ` classabbyamp [this message]
2024-01-22 21:11 ` felix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240122191044.0151523911@inbox.vuxu.org \
    --to=classabbyamp@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).