title: GeoTools/GDAL: Warning: Failed to load the kakadu native libs
body: <p>I'm trying to use GeoTools to read a dted file, but I'm having a lot of configuration issues.  I'm using eclipse and java.  Here is the abridged version of my code:</p>
  
  <p>import org.geotools.coverageio.gdal.dted.DTEDReader;</p>
  
  <pre><code>public class ViewDTED {
  public static void main(String[] args) {
  try {
  DTEDReader reader = new DTEDReader(new File("C:\\temp\\mydted.dt2"));
  System.out.println("It worked!");
  } catch (Exception e) {
  e.printStackTrace();
  }
  }
  }
  </code></pre>
  
  <p>When I run, the console spits out a message "Warning: Failed to load the Kakadu native libs".  It then proceeds to print the stack trace for an UnsatisfiedLinkError.</p>
  
  <p>My system path includes:
  C:_path
  C:\Program Files\gdal-1.9.0
  C:\%JAVA_HOME%\bin
  C:\Program Files\Common Files\ESRI\Raster\bin\ntx86</p>
  
  <p>That last one contains a lot of dll's, including the only dll's I found on my machine that have kakadu in their name.</p>
  
  <p>in C:_path I have this:<br/>
  gdal19.dll<br/>
  gdaljni.dll<br/>
  ogrjni.dll<br/>
  osrjni.dll<br/>
  gdalconstjni.dll<br/>
  gdal.jar<br/></p>
  
  <p>Those files were also copied to the root of my eclipse project.
  My eclipse build path includes gdal.jar and every jar found in C:\Program Files\geotools-2.7.4</p>
  
  <p>In the root of my eclipse project I have this:</p>
  
  <p>gdal19.dll<br/>
  gdaljni.dll<br/>
  ogrjni.dll<br/>
  osrjni.dll<br/>
  gdalconstjni.dll<br/>
  kakaducoresys.dll<br/></p>
  
  <p>Oh yeah, I have another environment variable defined: GDAL_DATA is set to "C:\Program Files\gdal-1.9.0"</p>
  
  <p>Would somebody please explain to me why the DTEDReader cannot find the necessary libs?</p>