I'm trying to migrate to Java 16 and it seems to need gradle >=7.0 (A simple Hello World with gradle 6.7 throws an exception: java.lang.IllegalArgumentException: Unsupported class file major version 60, So apparently gradle 6.7 can't handle Java 16)
But if I change the Tools->Options->Gradle to 7.0.1 it seems to compile but doesn't allow me to run. The "Notifications tab" has a warning: Cannot load: C:\...\gradleproject6 Priority LOW Category: Warning Unsupported class file major version 60 Bug! Exception in phase 'semantic analysis' in source unit '_BUildScript_' Unsupported class file major version 60 Could not open cp_init generic class cache for initialization script 'C:\Program Files\Netbeans-12.3\netbeans\extide\modules\gradle\nb-tooling.gradle' (C:\...\.gradle\cache\6.7\scripts\775509g0wn2dvwyx898pf3241). Could not open cp_init generic class cache for initialization script 'C:\Program Files\Netbeans-12.3\netbeans\extide\modules\gradle\nb-tooling.gradle' (C:\...\.gradle\cache\6.7\scripts\775509g0wn2dvwyx898pf3241). Could not run build action using connection to Gradle installation 'C:\...\.gradle\wrapper\dists\gradle-6.7-bin\efvqh8uyq79v2n7crncuhu9sv\gradle-6.7'. I'm guessing this is because Netbeans 12.3 was released before Java 16 and doesn't support Java 16. Now that Java 16 is official is there a way to fix this problem? Thanks, Jeff Wiegley