Skip to content

tomcat 5 java.lang.UnsatisfiedLinkError: tomcatapache-tomcat-5.5.36bintcnative-1.dll: Can’t load IA 32-bit .dll on a AMD 64-bit platform

I am on a brand new laptop, so it only has stuff I have installed on it in the last week, so i am pretty certain it doesn’t have old stuff hanging around.

This is rather large as i have tried to include EVERYTHING.

my java home is pointing to a 64 bit java 8, but because of “stuff” (TM) we are having to run ancient tomcat and java 6 for for our client. I have installed: jdk1.6.0_45 and jdk1.8.0_151 (which is my java_home version)

as you can see above I am using tomcat 5.5.36. And I am making the presumption that as it only has x64 directories it is a 64 bit tomcat. The tcnative.dll in this directory is the one from x64 (the file contents when looked at in 7zip match)

  Directory: C:Userswendy.gibbonstomcatapache-tomcat-5.5.36bin

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----       20/10/2017     11:26                i64
d-----       20/10/2017     11:26                x64
-a----       24/10/2017     10:46           6530 .catalina.bat.un~
-a----       24/10/2017     10:47           1429 .startup.bat.un~
-a----       20/10/2017     11:26          24384 bootstrap.jar
-a----       20/10/2017     11:26           1927 catalina-tasks.xml
-a----       24/10/2017     10:46          10102 catalina.bat
-a----       20/10/2017     11:49          10113 catalina.bat~
-a----       20/10/2017     11:26          13131
-a----       20/10/2017     11:26         202519 commons-daemon-native.tar.gz
-a----       20/10/2017     11:26          24242 commons-daemon.jar
-a----       20/10/2017     11:26          52313 commons-logging-api-1.1.1.jar
-a----       20/10/2017     11:26           1334 cpappend.bat
-a----       20/10/2017     11:26           2107 digest.bat
-a----       20/10/2017     11:26           1689
-a----       20/10/2017     11:26           2167 jmxaccessor-tasks.xml
-a----       20/10/2017     11:26           5088 service.bat
-a----       20/10/2017     11:26           3000 setclasspath.bat
-a----       20/10/2017     11:26           3577
-a----       20/10/2017     11:26           2099 shutdown.bat
-a----       20/10/2017     11:26           1628
-a----       24/10/2017     10:47           2094 startup.bat
-a----       20/10/2017     13:29           2105 startup.bat~
-a----       20/10/2017     11:26           2023
-a----       20/10/2017     11:26        1134080 tcnative-1.dll
-a----       20/10/2017     11:26          13519 tomcat-juli.jar
-a----       20/10/2017     11:26         261742 tomcat-native.tar.gz
-a----       20/10/2017     11:26          77312 tomcat5.exe
-a----       20/10/2017     11:26         103424 tomcat5w.exe
-a----       20/10/2017     11:26           3471 tool-wrapper.bat
-a----       20/10/2017     11:26           3508
-a----       20/10/2017     11:26           2104 version.bat
-a----       20/10/2017     11:26           1632

my catalina.bat file has

set CATALINA_HOME="C:Usersusertomcatapache-tomcat-5.5.36"
set JAVA_HOME="C:Usersuserjdk1.6.0_45"

here is the full exception in case you haven’t seen it before

java.lang.UnsatisfiedLinkError: C:Usersusertomcatapache-tomcat-5.5.36bintcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(
        at java.lang.ClassLoader.loadLibrary(
        at java.lang.Runtime.loadLibrary0(
        at java.lang.System.loadLibrary(
        at org.apache.tomcat.jni.Library.<init>(
        at org.apache.tomcat.jni.Library.initialize(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.apache.catalina.core.AprLifecycleListener.init(
        at org.apache.catalina.core.AprLifecycleListener.isAprAvailable(
        at org.apache.catalina.connector.Connector.setProtocol(
        at org.apache.catalina.connector.Connector.<init>(
        at org.apache.catalina.startup.ConnectorCreateRule.begin(
        at org.apache.tomcat.util.digester.Rule.begin(
        at org.apache.tomcat.util.digester.Digester.startElement(
        at org.apache.tomcat.util.digester.Digester.parse(
        at org.apache.catalina.startup.Catalina.load(
        at org.apache.catalina.startup.Catalina.load(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.apache.catalina.startup.Bootstrap.load(
        at org.apache.catalina.startup.Bootstrap.main(
25-Oct-2017 16:56:56 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:Usersuserjdk1.6.0_45bin;C:WINDOWSSunJavabin;C:WINDOWSsystem32;C:WINDOWS;C:oraclexeapporacleproduct11.2.0serverbin;;C:oraclexeapporacleproduct11.2.0serverbin;C:ProgramDataOracleJavajavapath;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:ProgramDatachocolateybin;C:Program FilesGitcmd;C:Program FilesTortoiseGitbin;C:Usersuserapache-maven-3.5.0-binapache-maven-3.5.0bin;;C:Program Files (x86)WinMerge;C:Program FilesPuTTY;C:UsersuserAppDataLocalMicrosoftWindowsApps;;.

I have searched my entire C drive and that dll is only in 3 places my C drive



The ZIP file for Tomcat 5.5.36 contains native libraries for IA32, IA64, and x86-64 architectures. The DLL file in Tomcat’s bin directory is almost certainly the IA32 one.

You’ll want to rename tcnative-1.dll to something like tcnative-1.dll.ia32 and then copy x64/tcnative-1.dll into bin in place of the one that was there previously.

Restart Tomcat and you should be up and running.

Tell the source of “stuff (TM)” that Tomcat 5.5 has long been EOL’d and both it and Java 6 likely have unpatched, publicly-known security vulnerabilities. Don’t be the next Equifax.