Hello everyone,

if anybody is interested: The problem is caused on Arch Linux by the recent update of zlib from zlib 1.2.11 to zlib 1.2.12. This native library is used by the JDK internally for calculating CRC sums.

More information:

https://bugs.archlinux.org/task/74371?string=zlib&project=1&type%5B0%5D=&sev%5B0%5D=&pri%5B0%5D=&due%5B0%5D=&reported%5B0%5D=&cat%5B0%5D=&status%5B0%5D=open&percent%5B0%5D=&opened=&dev=&closed=&duedatefrom=&duedateto=&changedfrom=&changedto=&openedfrom=&openedto=&closedfrom=&closedto=

https://github.com/madler/zlib/issues/634

https://github.com/madler/zlib/issues/426

Downgrading zlib to 1.2.11 solves the problem.

Best

Jens

On 04.04.22 08:16, Jens Pelzetter wrote:
Hello all,

for some reason Netbeans is reporting CRC errors for a lot of dependencies, for example several Jakarta EE things or Apache Shiro. The imports for classes from these dependencies are marked as errors, with the message (${classname} etc are only placeholders):

cannot access ${classname}
bad class file: ${classname}.class
unable to access file: ${full_qualified_name_of_class}: invalid entry CRC (expected ... but got ... ) Please remove or make sure it appears in the correct subdirectory of the classpath

This happens only on my desktop (Arch Linux), on almost identical configured Notebook everything is still fine. Tested with both the Arch Linux package, and the official download from netbeans.apache.org.

Java Version is

openjdk version "11.0.15" 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+3)
OpenJDK 64-Bit Server VM (build 11.0.15+3, mixed mode)

Compiling the affected projects with Maven on the commandline (or from Netbeans) still works fine.

What I already tried:

* Deleting the Netbeans Cache
* Downloading the dependencies again
* Using a fresh Netbeans profile

Any ideas what may causes this problem and how to fix it? If you need more information please let me know.

Best

Jens


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to