近期实验室配置项目环境,在macos系统上使用IDEA调用Maple接口
这是我的VM options
-ea -Djava.library.path="/Library/Frameworks/Maple.framework/Versions/2017/bin.APPLE_UNIVERSAL_OSX" -Xms1024m -Xmx6144m -XX:-UseGCOverheadLimit -XX:SurvivorRatio=8 -XX:+AggressiveOpts -Xss10m -Dfile.encoding=UTF-8
出现以下报错
java.lang.UnsatisfiedLinkError: /Library/Frameworks/Maple.framework/Versions/2017/bin.APPLE_UNIVERSAL_OSX/libjopenmaple.jnilib: dlopen(/Library/Frameworks/Maple.framework/Versions/2017/bin.APPLE_UNIVERSAL_OSX/libjopenmaple.jnilib, 1): Library not loaded: @rpath/libhf.dylib
Referenced from: /Library/Frameworks/Maple.framework/Versions/2017/bin.APPLE_UNIVERSAL_OSX/libjopenmaple.jnilib
Reason: image not found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1861)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at com.maplesoft.openmaple.Engine.<clinit>(Unknown Source)
at edu.uestc.auto.reasoning.core.maple.MapleEngineNOCache.<init>(MapleEngineNOCache.java:46)
at edu.uestc.auto.reasoning.core.maple.thread.v2.MapleEngineThread.run(MapleEngineThread.java:40)
Exception in thread "maple-evaluate-work" java.lang.UnsatisfiedLinkError: com.maplesoft.openmaple.Engine.getKernel([Ljava/lang/String;Lcom/maplesoft/openmaple/EngineCallBacks;Ljava/lang/Object;Ljava/lang/Object;)J
at com.maplesoft.openmaple.Engine.getKernel(Native Method)
at com.maplesoft.openmaple.Engine.<init>(Unknown Source)
at edu.uestc.auto.reasoning.core.maple.MapleEngineNOCache.<init>(MapleEngineNOCache.java:46)
at edu.uestc.auto.reasoning.core.maple.thread.v2.MapleEngineThread.run(MapleEngineThread.java:40)
有人知道怎么解决吗?