FS#79420 - [josm] Fails to launch with `dpkg: no packages found matching openjdk-*-jre` and subsequent errors.

Attached to Project: Arch Linux
Opened by Oid Maps (dreieck) - Sunday, 20 August 2023, 13:48 GMT
Last edited by Toolybird (Toolybird) - Sunday, 20 August 2023, 22:04 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I have installed extra/josm version 18721-1.

The script /usr/bin/josm is a debian-specific executable.

When I run `josm`, it fails with:

```
dpkg: no packages found matching openjdk-*-jre
dpkg: no packages found matching openjdk-*-jre:amd64
Using /usr/bin/java to execute josm.
Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.web not found
```


Additional info:
* package version(s):
- josm: 18721-1
- dpkg: 1.21.22-1

Regards!
This task depends upon

Closed by  Toolybird (Toolybird)
Sunday, 20 August 2023, 22:04 GMT
Reason for closing:  Not a bug
Additional comments about closing:  See comments
Comment by Oid Maps (dreieck) - Sunday, 20 August 2023, 13:55 GMT
By the way, error could occur because /usr/bin/josm uses a debian-specific script; I think any dpkg related stuff should not occur on an Arch Linux system, and an own wrapper script should be provided (maybe the aur/josm-* packages can be an inspiration?).
Comment by Toolybird (Toolybird) - Sunday, 20 August 2023, 22:04 GMT
> The script /usr/bin/josm is a debian-specific executable

No it isn't. It just happens to check for dpkg on your system. If you don't have it installed, it just issues a warning and harmlessly moves on. You can get josm working by following the advice here [1] which I've just verified (while having dpkg installed).

[1] https://bugs.archlinux.org/task/78707#comment221118

Loading...