netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

problem with CRC32C while background scanning

Open wumpz opened this issue 6 months ago • 1 comments

Apache NetBeans version

Apache NetBeans 26

What happened

Netbeans is running JDK 24 but my project is build on maven running on JDK 17.

This is repeatedly logged in the IDE LOG:

Even though the source level of <sourcecodefiles> is set to: 17, java.util.zip.CRC32C cannot be found on the system module path: 
WARNING [null]: Last record repeated 3 more times.
WARNING [null]: Last record repeated again.

Language / Project Type / NetBeans Component

No response

How to reproduce

Description provides enough info to see my setting. I was not yet able to create a minimal example.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows

JDK

Netbeans on JDK 24, Maven on JDK 17

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

No response

Are you willing to submit a pull request?

No

wumpz avatar Jun 06 '25 06:06 wumpz

To narrow the problem down, could you try to run maven from the command line.

To be able to do that, you should install maven and add it to your path. see https://maven.apache.org/install.html Choose for instance, the chocolaty installer, or, since you installed NetBeans using the zip, simple do that with maven too.

Then in a command line, navigate to your project and execute mvn validate followed by mvn compile. Then please report your findings

homberghp avatar Jun 23 '25 12:06 homberghp

this is likely mostly harmless and comes from a fallback method which tries to determine the java version by checking well known class files.

This can be used to diagnose issues, but if everything is still working it is generally not a problem.

https://github.com/apache/netbeans/blob/d10bf812d744914b323ab01d5266bf4e836de602/java/java.source.base/src/org/netbeans/modules/java/source/parsing/JavacParser.java#L1151

mbien avatar Sep 12 '25 07:09 mbien

pressed the wrong button. wanted to close as duplicate https://github.com/apache/netbeans/issues/5437

mbien avatar Sep 12 '25 07:09 mbien