Upsource
 

Error: "Could not initialize class com.sun.jna.Native"

Last modified: 02 April 2021

The error occurs on the Cassandra database startup. Cassandra throws the following exception while starting:

ERROR o.a.c.service.CassandraDaemon - Exception in thread Thread[MemtableFlushWriter:1,5,main]

java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native

at org.apache.cassandra.utils.memory.MemoryUtil.allocate(MemoryUtil.java:82) ~[apache-cassandra-2.2.4.jar:2.2.4]

at org.apache.cassandra.io.util.Memory.<init>(Memory.java:74) ~[apache-cassandra-clientutil-2.2.4.jar:2.2.4]

...