Hello folks!
I was building Processing with VSCode as per:
processing4/BUILD.md at main · processing/processing4 · GitHub
I had this issue:
> Dependency resolution is looking for a library compatible with JVM runtime version 17, but 'project :core' is only compatible with JVM runtime version 21 or newer.
I created a gradle.properties file with the directory of the Java JDK 17 I was using and that corrected the issue:
Sharing is caring.
Still exploring why this changed…
*** UPDATE***
This was not changed:
After some investigation it may be related to this:
Language Support for Java(TM) by Red Hat - Visual Studio Marketplace
Source: Microsoft Copilot (AI assistant):
VS Code’s Red Hat Java extension includes its own bundled JDK (currently JDK 21) for the Java Language Server. Gradle auto‑detects this JDK and prefers the newest version it finds, which causes Processing’s
:coremodule to be compiled with Java 21 instead of Java 17. Adding the following line togradle.propertiesforces Gradle to use the correct JDK and resolves the issue:org.gradle.java.home=e:\\jdk-17.0.16+8
@kit Does this need to be submitted as an issue?
:)



