Google OR-Tools:在集成开发环境中的使用

huangapple go评论61阅读模式
英文:

Google OR-Tools: Using in an IDE

问题

我遇到了一个问题,我想通过 Eclipse IDE 将 OR-Tools 添加到我的项目中。我想使用线性求解器。我已经添加了从下载的 Zip 文件中得到的两个 JAR 包。现在我想运行 OR-Tools 网站上的 SimpleLpExample。但是我遇到了错误,错误信息是在 java.library.path 中找不到 jniortools。我看到在其他帖子中他们说你需要运行 make third_party 和 make java,但是我不知道在哪里运行这些命令。

如果有人成功地将其添加到 IDE 中,希望这个人能解释一下他是如何做到的。感谢帮助。

英文:

I have the Problem that i want to add OR-Tools into my project via eclipse IDE. I want to use the Linear Solver. I added the two jars form the downloaded Zip file. Now i want to run the SimpleLpExample from the OR-Tools site. I've got the Error that no jniortools in java.library.path. I see that at other posts they say you have to run make third_party and make java, but i don't know where i have to run these commands.

When somebody added it successfully into an IDE it would be glade when this person can explain how he does it. Thanks for help.

答案1

得分: 0

不需要。您需要将路径添加到我在Eclipse中使用的jniortools共享库。所有动态库位于提取存档的lib/目录中。
要添加正确的路径,请按照这些说明进行操作:

英文:

No. You need to add the path to the jniortools shared library I'm eclipse.
All dynamic libraries are located in the lib/ directory of the extracted archive.

To add the correct path, please follow these instructions:

huangapple
  • 本文由 发表于 2020年8月21日 19:49:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/63522390.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定