Hi Everyone,

I'm trying to upgrade this Shapefile exporter for the open source Wildbook
project:

https://github.com/WildbookOrg/Wildbook/blob/mantamatcher.org/src/main/java/org/ecocean/servlet/export/EncounterSearchExportShapefile.java


 using Geotools 21.1 Java 8 support.

Everything compiles great, and I tell Maven to use Java 8 and have ensured
that my Ubuntu server is running Java 8.

But I get the following error:

java.lang.NoSuchFieldError: JAVA_9
        org.geotools.util.NIOUtilities.clean(NIOUtilities.java:207)
        org.geotools.util.NIOUtilities.clean(NIOUtilities.java:185)
        
org.geotools.data.shapefile.dbf.DbaseFileHeader.writeHeader(DbaseFileHeader.java:848)
        
org.geotools.data.shapefile.ShapefileDataStore.createSchema(ShapefileDataStore.java:307)
        
org.ecocean.servlet.export.EncounterSearchExportShapefile.doPost(EncounterSearchExportShapefile.java:195)
        
org.ecocean.servlet.export.EncounterSearchExportShapefile.doGet(EncounterSearchExportShapefile.java:57)

Can anyone advise what additional steps I could take to restore ShapeFile
export in our project with Geotools 21.1? Is there a hidden reference to
Java 9 somewhere in something I am using?

Thank you!
Jason Holmberg
Executive Director/Director of Engineering

*A.I. and humans combating extinction together.*
Wild Me - https://www.wildme.org
Wildbook - https://www.wildbook.org
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to