I hope this is the right forum for this question. I am working through the Orange book(Teradata Spatial Release 13.0 Users Guide) on this and am stumped with the example code on page 25, likely because it's been a while since I've done java on a windows system...
::My Code in a window batch file... java ^ -classpath .^ ;c:\pathtopkg\bin^ ;c:\pathtopkg\bin\geojni.dll^ ;c:\pathtopkg\bin\terajdbc4.jar^ ;c:\pathtopkg\bin\tdgssjava.jar^ ;c:\pathtopkg\bin\tdgssconfig.jar ^ com.teradata.geo.TDGeoExport ^ -l 192.168.47.128/dbc,dbc ^ -f c:\pathtopkg\bin\epsg_data\coordinate_axis.csv
The output I got was a linking issue with a component of the library i suspect that adding geojni.dll is overkill or just wrong, but I get the same response with or without it there. Basically it can't find it...
::Result output the dll exists in the bin directory and the class is in the com/teradata/geo directory. (lines broken up for easy reading...) C:\pwd>java -classpath . ;c:\pathtopkg\bin ;c:\pathtopkg\bin\geojni.dll ;c:\pathtopkg\bin\terajdbc4.jar ;c:\pathtopkg\bin\tdgssjava.jar ;c:\pathtopkg\bin\tdgssconfig.jar com.teradata.geo.TDGeoExport -l 192.168.47.128/dbc,dbc -f c:\pathtopkg\bin\epsg_data\coordinate_axis.csv java.lang.UnsatisfiedLinkError: no geojni in java.library.path 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.TDGeoExport.main(TDGeoExport.java:701) =========================================== Data exporting failed!
Forums: