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

Teradata® Geospatial Utilities User Guide

prodname
Geospatial Utilities
vrm_release
17.00
created_date
June 2020
category
User Guide
featnum
B035-2519-220K
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.