java.lang.UnsatisfiedLinkError: /usr/share/apache-tomcat-9.0.0.M10/lib/libtcnative-1.so.0.2.8: /usr/share/apache-tomcat-9.0.0.M10/lib/libtcnative-1.so.0.2.8: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

This is a sub-class of the LinkageError class and indicates that the JVM cannot find an appropriate native-language definition of a method declared as native. Install the CDF Software Distribution on your system.

,
Expert tip

This happens sometimes when Android fails to load the necessary libraries when you install an app. Try reinstalling it or telling your client to reinstall it, as it seems to correctly install the libraries and fixes the problem.

Solutions on the web

via Stack Overflow by Vladimir Aristarkhov
, 1 year ago
/usr/share/apache-tomcat-9.0.0.M10/lib/libtcnative-1.so.0.2.8: /usr/share/apache-tomcat-9.0.0.M10/lib/libtcnative-1.so.0.2.8: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
via Stack Overflow by YBS
, 1 year ago
$CATALINA_HOME/lib/libtcnative-1.so.0.2.8: $CATALINA_HOME/lib/libtcnative-1.so.0.2.8: undefined symbol: BN_get_rfc3526_prime_8192
via GitHub by carlosrodriguez85
, 9 months ago
/biserver-ce/tomcat/lib/libtcnative-1.so.0.2.8: libapr-1.so.0: cannot open shared object file: No such file or directory
via Server Fault by YBS
, 1 year ago
/usr/local/apr/lib/libtcnative-1.so.0.2.10: /usr/local/apr/lib/libtcnative-1.so.0.2.10: undefined symbol: BN_get_rfc3526_prime_8192
via Stack Overflow by Mr. A
, 5 months ago
C:\apache-tomcat-8.5.4\bin\tcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
via Google Groups by Andrea, 3 months ago
/usr/java/j2sdk1.4.2_08/jre/lib/i386/client/libLpktgen.so: /usr/java/j2sdk1.4.2_08/jre/lib/i386/client/libLpktgen.so: undefined symbol: libnet_init
java.lang.UnsatisfiedLinkError: /usr/share/apache-tomcat-9.0.0.M10/lib/libtcnative-1.so.0.2.8: /usr/share/apache-tomcat-9.0.0.M10/lib/libtcnative-1.so.0.2.8: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.apache.tomcat.jni.Library.(Library.java:42)
at org.apache.tomcat.jni.Library.initialize(Library.java:178)
at org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:198)
at org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:107)
at org.apache.catalina.connector.Connector.setProtocol(Connector.java:545)
at org.apache.catalina.connector.Connector.(Connector.java:70)
at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:64)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1338)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2781)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:504)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1476)
at org.apache.catalina.startup.Catalina.load(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)

Users with the same issue

48 times, 3 weeks ago
Once, 1 month ago
Once, 6 months ago
Once, 1 year ago
14 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.