[ https://issues.apache.org/jira/browse/NETBEANS-6107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17464168#comment-17464168 ]
Gregory Sartucci commented on NETBEANS-6107: -------------------------------------------- I think I'm having the same issue, or something close. I'm currently trying to work with a java 16+ project using Gradle, in Netbeans, and I'm getting this error: A problem occurred evaluating root project 'architectury-example-mod'. > Failed to apply plugin 'dev.architectury.loom'. > You are using an outdated version of Java (11). Java 16 or higher is required. The JAVA_HOME environment variable is currently set to (/usr/lib/jvm/graalvm-ce-java17-21.3.0). I've set my Netbeans to use Java 17 anywhere and everywhere I can. I don't see any option for setting the JDK version used for Gradle, the way there is for Maven, though. Is that the problem? And, if so, is there a way for me to fix it? :/ > Gradle support does not work when NB/project is JDK17 > ----------------------------------------------------- > > Key: NETBEANS-6107 > URL: https://issues.apache.org/jira/browse/NETBEANS-6107 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle > Affects Versions: 12.5 > Environment: macOS, GraalVM JDK17, using Micronaut Gradle project, > generated by wizard. > Reporter: Martin Balin > Assignee: Svata Dedic > Priority: Major > Labels: pull-request-available > Fix For: 12.6 > > Attachments: Screenshot 2021-10-05 at 10.57.02.png > > Time Spent: 3h 20m > Remaining Estimate: 0h > > Opening Gradle based project which uses JDK17 and running NB on JDK17 does > not Resolve Problems when project is open. > It is stuck in this with attached screenshot error. Running Build as command > completes as it uses Gradle 7.2 along with JDK17. > I don't know why JDK16 is referenced, it does not exist on the system and I > also removed all NB user dirs. -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists