【发布时间】:2017-01-13 12:51:47
【问题描述】:
在 Netbeans 8.1 中使用 CPLEX 12.6 时遇到问题。我在 Netbeans 中添加了 cplex126 库,编写了优化代码并运行了它。它将问题解决到最优,并且解决方案出现在输出中。
但是当我在 VM 选项中添加以下路径时:-Djava.library.path=/Applications/IBM/ILOG/CPLEX_Studio126/cplex/bin/x86-64_osx
我收到以下错误:
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Unrecognized option: -
C:\Users\A.OMIDI\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 0 seconds)
是否真的需要添加虚拟机选项的路径? (没有它,问题就解决了)
【问题讨论】:
-
这个问题被交叉发布here。