Package Details: unbted 1.2.1-2

Git Clone URL: https://aur.archlinux.org/unbted.git (read-only, click to copy)
Package Base: unbted
Description: Una's NBT Editor - an advanced interactive command-line NBT editor
Upstream URL: https://github.com/unascribed/unbted
Licenses: MIT, Apache-2.0, GPL-3.0-only
Submitter: cotton1
Maintainer: cotton1
Last Packager: cotton1
Votes: 0
Popularity: 0.000000
First Submitted: 2024-04-16 23:37 (UTC)
Last Updated: 2025-03-08 23:55 (UTC)

Dependencies (4)

Required by (0)

Sources (2)

Latest Comments

cotton1 commented on 2025-03-08 23:57 (UTC)

Hi, thanks for pointing this out. I have made the change you suggested.

solonovamax commented on 2025-03-08 18:44 (UTC)

Hi, there is an issue with the package.

Due to /usr/bin/unbted doing the following:

exec /usr/bin/java -jar '/usr/share/java/unbted/unbted.jar' "$@"

it does resolve java based on the $PATH, which can cause issues because it is compiled targeting the java version of the current shell session.

This can result in the following:

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/unascribed/nbted/NBTEd has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0

where it was compiled targeting java 17, but /usr/bin/java is a java 8 jdk.

due to using arch linux's method of switching java versions, it means you cannot use a jdk from something like sdkman or jenv.

It should instead be

exec java -jar '/usr/share/java/unbted/unbted.jar' "$@"