Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#75933 - [freecol] breaks if default java is to old

Attached to Project: Community Packages
Opened by Lone_Wolf (Lone_Wolf) - Sunday, 18 September 2022, 09:44 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Tuesday, 27 September 2022, 12:38 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

freecol 0.13-2

Description:
currently freecol requires java 11 as minimum version.
Incase a user has set a lower version (like 8) through archlinux-java freecol fails to launch .

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/sf/freecol/FreeCol has been compiled by a more recent version of the Java Runtime


Steps to reproduce:
install java 8 and make it the default, then start freecol.

In my aur pacakge freecol-git I solved this by forcing a specific java version in the wrapper script and make freecol-git depend on that specific java version.

See https://aur.archlinux.org/cgit/aur.git/tree/freecol-git.sh?h=freecol-git


This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Tuesday, 27 September 2022, 12:38 GMT
Reason for closing:  Fixed
Comment by Sven-Hendrik Haase (Svenstaro) - Monday, 26 September 2022, 22:55 GMT
Thanks, check the current package. I applied your suggestion.
Comment by Lone_Wolf (Lone_Wolf) - Tuesday, 27 September 2022, 12:11 GMT
Looks good.
I also tested without java 11 present and default set to newer java version and found no issues.

Loading...