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

UnsupportedClassVersionError when installing latest beta on Windows #1609

Open
jletroui opened this issue Nov 28, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@jletroui
Copy link

jletroui commented Nov 28, 2024

Describe the bug
Trying to run on Windows, with the JDK version described in the documentation leads to:

~\Downloads> java -version
openjdk version "11.0.25" 2024-10-15
OpenJDK Runtime Environment Temurin-11.0.25+9 (build 11.0.25+9)
OpenJDK 64-Bit Server VM Temurin-11.0.25+9 (build 11.0.25+9, mixed mode)
~\Downloads> java -jar photonvision-v2025.0.0-beta-5-winx64.jar
Error: LinkageError occurred while loading main class org.photonvision.Main
        java.lang.UnsupportedClassVersionError: org/photonvision/Main 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 55.0

To Reproduce
Steps to reproduce the behavior:

  1. Installed the requirements with choco install -y vcredist-all Temurin11
  2. Download photonvision-v2025.0.0-beta-5-winx64.jar from the release page
  3. Change directory to the download directory
  4. Run the command java -jar photonvision-v2025.0.0-beta-5-winx64.jar

Platform:

  • Hardware Platform: Windows x64)
  • PhotonVision Version: v2025.0.0-beta-5
  • Browser: irrelevant
  • Camera(s) Used: irrelevant

Workaround

Installing Temurin17 is solving the issue.

@jletroui jletroui added the bug Something isn't working label Nov 28, 2024
@mcm001
Copy link
Contributor

mcm001 commented Nov 28, 2024

Related to #1604 - our docs need to require the wpilib jdk due to windows std mutex Abi break too

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