[BUG] Claude Code Java 25 Information Error
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Claude Code is suggesting wrong information and guideline others to use older versions...
What Should Happen?
CC should answer properly with exactly information or more accurate information.
Error Messages/Logs
Steps to Reproduce
- Have mixed proyects in your folders with different versions of Java
- Ask for help to create a new proyect.
- Let him to create settings for the new proyect using the default of the system...
- Ask him to upgrade to Java 25
He will shows J25 as non-LTS.
After correct him, and shows the proofs of J25 LTS, he will say that J25 is LTS, J26 is non-LTS, and J27 is LTS (which is not true, because J27 is non-LTS according to Oracle website)
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.1
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
✶ Insight ──────────────────────────────────────────────
Java Version Decision:
Options:
- Java 21 LTS (Long Term Support until 2031)
- ✅ More stable and mature
- ✅ Better library support
- ✅ It is an official LTS
- Java 25 (Non-LTS, released March 2025)
- ⚠️ Not LTS (support until September 2025)
- ⚠️ Next LTS is Java 26 (September 2026)
- ✅ New features
Recommendation for shared libraries:
Use Java 21 because:
- Libraries must be compatible with all services
- Java 21 is the common denominator
- Services running Java 25 can use libraries compiled in Java 21
───────────────────────────────────────────────────────────────────────────
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗