TransWikia.com

Ошибка java.lang.UnsatisfiedLinkError: no gdalalljni in java.library.path с GDAL на MacOS

Stack Overflow на русском Asked by Filislav on December 31, 2020

Есть проект в NetBeans 11 c использованием gdal, он прекрасно работает на linux Debian, но при попытке запустить его на Mac OS 10.15 выдает ошибку

Native library load failed.
java.lang.UnsatisfiedLinkError: no gdalalljni in java.library.path: [/Users/slava/Library/Java/Extensions, /Library/Java/Extensions, /Network/Library/Java/Extensions, /System/Library/Java/Extensions, /usr/lib/java, .]
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: 'void org.gdal.gdal.gdalJNI.AllRegister()'
    at org.gdal.gdal.gdalJNI.AllRegister(Native Method)
    at org.gdal.gdal.gdal.AllRegister(gdal.java:571)
    at ru.soniir.tropo.tropolinecalc.topograph.GeoTiffTopograph.<init>(GeoTiffTopograph.java:45)
    at ru.soniir.tropo.tropolinecalc.pojo.Track.<clinit>(Track.java:40)
    at ru.soniir.tropo.tropolinecalc.gui.MainFrame.<init>(MainFrame.java:57)
    at ru.soniir.tropo.tropolinecalc.TropoLineCalc$1.run(TropoLineCalc.java:26)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Установил gdal с помощью homebrew, к сожалению ключи –with java –java-swig уже не работают.
Прошу помощи у тех кто работал c gdal на mac, как можно установить необходимые зависимости и запустить проект?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP