You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by "Wiegley, Jeffrey" <je...@csun.edu> on 2021/05/12 01:33:28 UTC
netbeans 12.3 doesn't support gradle 7.0.1? (keeps trying to use 6.7
for something)
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
Re: netbeans 12.3 doesn't support gradle 7.0.1? (keeps trying to use
6.7 for something)
Posted by Laszlo Kishalmi <la...@gmail.com>.
Well, more properly NetBeans 12.3 bundles Gradle 6.7 tooling API which
does not support Java 16. Actually NetBeans 12.3 does not officially
supports Java 16.
Though you do not need to worry that much. NetBeans 12.4 will support
Java 16, including Gradle 7.x
The 12.4-rc3 is in the pipeline, 12.4-rc2 is looking good, so probably
won't have to wait for the final too long!
On 5/11/21 6:33 PM, Wiegley, Jeffrey wrote:
>
> 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
>