Stupid GMail sent the message before I was done...
The rest of the error says:
"phase 'semanic anaylisis' in source unit '__BuildScript_' Unsupported
major class version 63"

I.e. it is trying to use Gradle 7.5 while NetBeans is running on JDK 19 and
failing.

What is interesting is the first message - that Java 19 is not supported by
Gradle 7.6.  That is false.  7.6 is when Gradle gets Java 19 support.  The
suggestion to downgrade to 7.5 which is known not to work is a little funny.

Basically the release notes for NetBeans 16 should mention that Gradle
projects don't work if you run the IDE with JDK 19, JDK 17 should be used
instead.


Regards, scott


> My .java files show a hint on the first line:
>
> "Missing mandatory Classpath entries. Resolve Project Problems."
>
> The "Resolve Project Problems" dialog has two entries:
>
> The first is: "Unsupported Java Runtime" which shows the text:
>
> The IDE is running on Java 19 that is not supported by Gradle 7.6.
> The IDE will attempt to use Gradle 7.5 to gather the project information.
>
> Either upgrade your Gradle version on your project or run the IDE on Java
> 18 to avoid this problem!
>
> The next is the usual "Priming Build Required", the priming build always
> fails with (and I really wish I could copy paste this message, but it isn't
> selectable):
>
> "Could not open cp_init generic class cache for initialization script
> '/Users/scott/Library/Caches/NetBeans/16-rc4/gradle/nb-tooling.gradle'
> (/Users/scott/.gradle/caches/7.5/scripts/7xonayhtu59gy36tmrwmb6dqe). BUG!
> exception is phase "
>

Reply via email to