failed.java.lang.UnsatisfiedLinkError: no gdaljni in java.library.path Exception in thread "main" java.lang.ClassCastException: sun.awt.image.URLImageSource cannot be cast to java.io.InputStream at org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCFormat.accepts(ImageMosaicJDBCFormat.java:176) at org.geotools.coverage.grid.io.GridFormatFinder.findFormats(GridFormatFinder.java:172) at org.geotools.coverage.grid.io.GridFormatFinder.findFormat(GridFormatFinder.java:200)

mail-archive.com | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [Geotools-gt2-users] Problem with the image lab

    mail-archive.com | 9 months ago
    failed.java.lang.UnsatisfiedLinkError: no gdaljni in java.library.path Exception in thread "main" java.lang.ClassCastException: sun.awt.image.URLImageSource cannot be cast to java.io.InputStream at org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCFormat.accepts(ImageMosaicJDBCFormat.java:176) at org.geotools.coverage.grid.io.GridFormatFinder.findFormats(GridFormatFinder.java:172) at org.geotools.coverage.grid.io.GridFormatFinder.findFormat(GridFormatFinder.java:200)

    Root Cause Analysis

    1. failed.java.lang.UnsatisfiedLinkError

      no gdaljni in java.library.path Exception in thread "main" java.lang.ClassCastException: sun.awt.image.URLImageSource cannot be cast to java.io.InputStream at org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCFormat.accepts(ImageMosaicJDBCFormat.java:176) at org.geotools.coverage.grid.io.GridFormatFinder.findFormats(GridFormatFinder.java:172) at org.geotools.coverage.grid.io.GridFormatFinder.findFormat(GridFormatFinder.java:200)

      at my.app.gis.utils.examples.ImageLab.displayLayers()
    2. my.app.gis
      ImageLab.main
      1. my.app.gis.utils.examples.ImageLab.displayLayers(ImageLab.java:98)
      2. my.app.gis.utils.examples.ImageLab.getLayersAndDisplay(ImageLab.java:80)
      3. my.app.gis.utils.examples.ImageLab.main(ImageLab.java:54)
      3 frames