Skip to content

docs: add Java 25+ build troubleshooting for Gradle cache issue#393

Merged
fglock merged 2 commits into
masterfrom
fix/java25-gradle-support
Mar 27, 2026
Merged

docs: add Java 25+ build troubleshooting for Gradle cache issue#393
fglock merged 2 commits into
masterfrom
fix/java25-gradle-support

Conversation

@fglock
Copy link
Copy Markdown
Owner

@fglock fglock commented Mar 27, 2026

Summary

Fixes #392

This PR adds documentation for users experiencing the "Unsupported class file major version 69" error when building with Java 25+.

Root cause: Users may have an old Gradle 8.x version cached from a previous clone or project, but Gradle 8.x doesn't support Java 25 (class file version 69). The project's Gradle 9.0 wrapper supports Java 22-25+.

Changes:

  • QUICKSTART.md: Added collapsible troubleshooting section with step-by-step fix
  • docs/getting-started/installation.md: Added comprehensive Troubleshooting section:
    • Detailed explanation of the error and its cause
    • Java version compatibility table (Java 22-25+)
    • Step-by-step fix for Linux/macOS and Windows
    • Additional common issues (JAVA_HOME not set, slow builds)
  • Updated prerequisites to clarify Java 22-25+ support

Test plan

  • Verified build passes with make
  • Verified documentation renders correctly

Generated with Devin

fglock and others added 2 commits March 27, 2026 19:33
Add documentation for users experiencing "Unsupported class file major
version 69" error when building with Java 25. The issue occurs when an
old Gradle 8.x cache conflicts with the project's Gradle 9.0 wrapper.

Changes:
- QUICKSTART.md: Add collapsible troubleshooting section with fix
- installation.md: Add comprehensive Troubleshooting section including:
  - Java version compatibility table (Java 22-25+)
  - Step-by-step fix for clearing old Gradle cache
  - Additional common issues (JAVA_HOME, slow builds)
- Update prerequisites to clarify Java 22-25+ support

Fixes #392

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Add check-java-gradle target that automatically detects when Java 25+
is used with an incompatible Gradle version (< 9.0) and fixes it by:
1. Clearing old Gradle 8.x caches from ~/.gradle/wrapper/dists/
2. Updating the wrapper to Gradle 9.0

The check runs before build, dev, and ci targets, ensuring users with
Java 25+ can build without manual intervention.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@fglock fglock merged commit 6d50a65 into master Mar 27, 2026
2 checks passed
@fglock fglock deleted the fix/java25-gradle-support branch March 27, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

problem building in Ubuntu

1 participant