17.10 - Cannot Load IA 32-bit .dll On An AMD 64-Bit Platform - Geospatial Utilities

Teradata® Geospatial Utilities User Guide

Product
Geospatial Utilities
Release Number
17.10
Published
June 2021
Language
English (United States)
Last Update
2021-07-01
dita:mapPath
ngj1608578450889.ditamap
dita:ditavalPath
obe1474387269547.ditaval
C:\Program Files\Java\jre1.8.0_144\bin>java -Xms256m -Xmx512m -classpath 
.;C:\TeraJDBC\terajdbc4.jar;C:\TeraJDBC\tdgssconfig.jar;"C:\Program Files\Teradata\Client\16.20\bin\tdgeospatial.jar"; 
com.teradata.geo.TDGeoImport -l TDPID/username,password -s bg569047 
-f tl_2018_us_state -n states
java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Teradata\Client\16.20\bin
\geojni.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(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.teradata.geo.TDGeoImport.main(TDGeoImport.java:1359)

This issue will arise if the user has both 32- and 64-bit Java installation on the client machine and the wrong java bit is selected, for example, 64-bit Java is select for 32-bit geospatial utility or 32-bit Java is selected for 64-bit geospatial utility.

To resolve the issue, make sure that PATH, JAVA_HOME, and CLASSPATH are set accordingly to tdgeospatial bitness.