Several JDKs can be installed side by side. `cstudy` never looks for them: it uses the one your shell selects, so `sdk use java <identifier>` in one terminal, or a `.sdkmanrc` in a directory, switches it. Switching starts another Gradle daemon and compiles once more. Your Java and Kotlin code compiles at the level of the selected JDK, up to 26, so a newer JDK lets you use its language features and APIs. A problem that needs a newer JDK than 21 says so in its statement, and `cstudy` refuses to start it on an older one.
0 commit comments