netbeans-gradle-project icon indicating copy to clipboard operation
netbeans-gradle-project copied to clipboard

package does not exist: java.util.logging with gradle and jdk11

Open ratcashdev opened this issue 5 years ago • 5 comments

Opening a project on Netbeans 10 using Gradle 5.2, plugin version 2.0.2 and JDK11 results in import errors for classes like java.util.logging.Logger or java.util.logging.Level on Windows 10

ratcashdev avatar Feb 19 '19 10:02 ratcashdev

Is it a modular project or not? If it is not, then you have to disable modularization in the project/global properties.

kelemen avatar Feb 20 '19 21:02 kelemen

it has a parent and a single child project right now.

ratcashdev avatar Feb 20 '19 21:02 ratcashdev

I meant from Jigsaw perspective.

kelemen avatar Feb 20 '19 21:02 kelemen

Note for future Googlers: To disable use Project Properties dialog: Under "Java modules" I unchecked the "Allow Modules" checkbox for both Default and Global profile, and eventually it solved the problem. It took awhile before the red X beside all the files in the Projects window finally resolved, but they did eventually as I browsed the files.

slominskir avatar Apr 11 '19 15:04 slominskir

thanks. as much as I am concerned, this can be closed.

ratcashdev avatar Apr 14 '19 20:04 ratcashdev