MX 11.10.0 not compatible with JDK21+. MsCoPilot halucinating?

0
After upgrading a 10.24 project to 11.10.0 the project failed to start. Gave me an error "System.ArgumentOutOfRangeException: StartIndex cannot be less than zero. (Parameter 'startIndex') at System.String.Remove(Int32 startIndex) at Mendix.Modeler.Deployment.Build.Scripts.Gradle.JavaDeprecationParser.RemoveLastChar(String value) in Mendix.Modeler.Deployment\Build\Scripts\Gradle\JavaDeprecationParser.cs:line 101"Tried lots, cleaning up old Java and Gradle-cache. No result so far.Now MsCoPilot tells me: JDK 21 + Mendix 11.10.0 is NOT a supported combination, and it often produces unexpected Gradle warnings → which is exactly what breaks the deprecation parser.Is that so or is MsCoPilot halucinating?
asked
2 answers
2

Hi Tim van Steenbergen


Copilot is hallucinating. JDK 21 is the required and only supported JDK for Mendix 11 — Mendix dropped Java 17 in the move to 11. So JDK 21 + 11.10.0 is the correct combination, not a broken one.

Your actual error is a crash inside Studio Pro's own build tooling (JavaDeprecationParser), triggered by malformed Gradle build output not by your JDK. delete the deployment folder and .mendix-cache

Clear the whole %USERPROFILE%\.gradle folder, not just the cache.

Check for a rogue C:\Gradle folder and stale GRADLE_HOME / old JAVA_HOME env vars — Mendix 11 expects its own bundled Gradle 8.x.

In Edit → Preferences, confirm the JDK points at a clean full JDK 21 (Eclipse Temurin), not a JRE or partial install.


Then open again still if there is any error check by creating a new project! I hope thisn helps

answered
1

It's probably hallucinating.

We upgraded a project from 10.24.13 to 11.10.0 recently and it has been working fine since.


Did you try excluding custom java actions if you have any?

answered