gpt4 book ai didi

java openmaple 与 eclipse 的连接

转载 作者:行者123 更新时间:2023-11-30 06:13:25 25 4
gpt4 key购买 nike

test.java simple example for openmaple

friend 们大家好!

我已经尝试了很多次使用openmaple将java连接到maple,但出现以下错误。请帮助我,我正在使用 Eclipse 作为 java 编辑器。提前致谢

`java.lang.UnsatisfiedLinkError: no jopenmaple in java.library.pathError loading libraries: java.lang.UnsatisfiedLinkError: no jopenmaple in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.maplesoft.openmaple.Engine.<clinit>(Unknown Source)
at test.main(test.java:23)
Exception in thread "main" 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 test.main(test.java:23)`

最佳答案

您可能需要确保 Eclipse 指向 externalcall.jarjopenmaple.dllMaple.jar

首先添加

C:\Program Files\Maple 15\java\externalcall.jar
C:\Program Files\Maple 15\java\Maple.jar

右键单击该项目(我将其命名为 OpenMaple),然后转到构建路径 > 添加外部文件

其次,创建一个名为 DLLs 的包子文件夹,并将以下文件复制到该文件夹​​中:

C:\Program Files\Maple 15\bin.X86_64_WINDOWS\jopenmaple.dll

然后,导航至

Properties > Java Build Path > Source > OpenMaple/src > Native library location

并添加OpenMaple/DLLs

关于java openmaple 与 eclipse 的连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49787692/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com