I'm having an issue with how NetBeans runs Gradle when it loads a project.
The first time I tried to load the project it failed.  That is because
NetBeans is running with Java 8 and the project requires Java 15.  So I
change the project properties Build/Compile JDK to Java 15 and try to
reload, but it appears that the script evaluation is still being done with
Java 8 and so the project script throws an exception and fails to load
completely load the project.

I can run a build, even from within NetBeans, and it works, but the project
won't load properly because it seems that JAVA_HOME is not set based on the
NB project properties when initially loading the project script.  I can
live with the fact that the first load fails and I have to tell NB which
JDK to use, but that workaround isn't working either.

Scott

Reply via email to