gpt4 book ai didi

java - SimGrid-3.13 无法加载类

转载 作者:行者123 更新时间:2023-11-29 06:54:48 35 4
gpt4 key购买 nike

有构建 SimGrid .jar 文件的步骤。

我从 here 下载存档.然后我做了以下

cmake -DCMAKE_INSTALL_PREFIX=/home/Documents/simgrid -Denable_maintainer_mode=off -Denable_compile_optimizations=off -Denable_java=on -Denable_model-checking=off
make
make check

100% 测试通过,586 次测试中有 0 次失败

ctest

100% 测试通过,586 次测试中有 0 次失败

make install

SimGrid-3.13文件夹中有simgrid.jar。但是当我编写代码时,我无法从这个 .jar 文件加载类。我该如何解决?

已更新如果我从 thence 下载准备好的 simgrid.jar , 发生错误

Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/simgrid-java2166199247712718748/libsimgrid.so: libcgraph.so.6: cannot open shared object file: No such file or directory

我必须在哪里添加 libsimgrid-java.so, libsimgrid.so?

已更新2安装 graphviz graphviz-dev 之后。出现新错误

Invalid XML (XML input line 2, state 2): Bad declaration <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid.dtd">.
If your are using a XML v3 file (check the version attribute in <platform>), please update it with tools/simgrid_update_xml.pl
[0.000000] /builds/workspace/SimGrid-Multi/build_mode/Debug/node/simgrid-ubuntu-trusty-64/build/SimGrid-3.13/src/surf/xml/surfxml_sax_cb.cpp:55: [surf_parse/ERROR] Parse error at (null):2: Parse error in /home/ken/IdeaProjects/Sim2Sim/src/main/java/LHCb/platform.xml
[0.000000] /builds/workspace/SimGrid-Multi/build_mode/Debug/node/simgrid-ubuntu-trusty-64/build/SimGrid-3.13/src/surf/xml/surfxml_sax_cb.cpp:57: [xbt/CRITICAL] Exiting now

最佳答案

关于第二次更新,您应该阅读您复制粘贴的错误消息:

If your are using a XML v3 file (check the version attribute in <platform>), please update it with tools/simgrid_update_xml.pl

你能确认一下吗:

关于java - SimGrid-3.13 无法加载类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36574526/

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