jericks / geoc

A geospatial command line application.
http://jericks.github.io/geoc/index.html
MIT License
6 stars 0 forks source link

Illegal reflective access by org.geotools.image.ImageWorker #10

Open tobwen opened 3 years ago

tobwen commented 3 years ago

issue

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.geotools.image.ImageWorker (file:/geoc-app-0.15.0.jar) to constructor com.sun.imageio.plugins.jpeg.JPEGImageWriterSpi()
WARNING: Please consider reporting this to the maintainers of org.geotools.image.ImageWorker
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

steps to reproduce

# Debian Buster
$ java -jar ./geoc-app-0.15.0.jar tile generate -l "type=utfgrid file=utf" -m "layertype=layer file=test.shp" -f "AGS" -s 0 -e 0 -v

possible fix

add-exports java.desktop/com.sun.imageio.plugins.jpeg

tobwen commented 3 years ago

Seems to be the old problem... this still works: https://github.com/jericks/geoc/issues/7#issuecomment-635773736