Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error -target 7 and -source 7 is not supported in 21.0.2 #2208

Open
1 task done
chouzz opened this issue Mar 9, 2024 · 1 comment
Open
1 task done

Build error -target 7 and -source 7 is not supported in 21.0.2 #2208

chouzz opened this issue Mar 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@chouzz
Copy link
Contributor

chouzz commented Mar 9, 2024

Operating System

Windows

Version of Prism Launcher

Prism Launcher 8.2

Version of Qt

Qt6

Description of bug

Build Prism launcher error, -target 7 and -source 7 is not supported in 21.0.2

Steps to reproduce

Get errors about java compiler option -target 7 and -source 7, it said these options is not supported in jdk21.0.2

Suspected cause

The problem is clear, higher version does not support -source 7 option, maybe Prisim Launcher should make it clearer in

set(CMAKE_JAVA_COMPILE_FLAGS -target 7 -source 7 -Xlint:deprecation -Xlint:unchecked)
, at least send a message tell the user if it builds an error.

This issue is unique

  • I have searched the issue tracker and did not find an issue describing my bug.
@chouzz chouzz added the bug Something isn't working label Mar 9, 2024
@AndrewAmmerlaan
Copy link

See #1013

FWIW, in Gentoo we now patch java 7 to java 8 conditional to whether the version of openjdk is larger then 20. This avoids the problem but, as noted in the linked issue, may introduce problems for very old versions of Minecraft. We therefore print a warning when we do this and instruct the user to select an older openjdk version if they experience problems. Perhaps something similar could be done upstream to avoid the compile failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants