【发布时间】:2016-06-17 10:26:48
【问题描述】:
我已经阅读了很多论坛,但我没有找到任何关于 IntelliJ Idea 的信息。
我不是开发人员,但我在 Debian 上管理一个 Tomcat8 服务器。
开发人员希望在其 Grails 应用程序中使用 IBM ILOG CPLEX。他使用 IDE“IntelliJ Idea”。 他会通过创建这样的对象来使其工作:
// Create the shape / object solver
IloCplex CPLEX IloCplex = new ();
System.out.println ( "\ n IloCplex CPLEX IloCplex = new ();");
...
...
PC 用户是 windows 并且安装了 IntelliJ IDEA 和 CPLEX。 有了这个配置,程序就可以工作了。
当程序导出.war并传输到tomcat服务器时,它不再起作用了。
我们有错误:
Error 500: Internal Server Error
line | method
- 1145 >> | runWorker in java.util.concurrent.ThreadPoolExecutor
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 615 | run in java.util.concurrent.ThreadPoolExecutor $ Worker
^ 745 | run. . . in java.lang.Thread
Caused by ControllerExecutionException: Runtime error executing actions
- 1145 >> | runWorker in java.util.concurrent.ThreadPoolExecutor
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 615 | run in java.util.concurrent.ThreadPoolExecutor $ Worker
^ 745 | run. . . in java.lang.Thread
Caused by InvocationTargetException: null
- 1145 >> | runWorker in java.util.concurrent.ThreadPoolExecutor
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 615 | run in java.util.concurrent.ThreadPoolExecutor $ Worker
^ 745 | run. . . in java.lang.Thread
Caused by UnsatisfiedLinkError: ilog.cplex.Cplex.CPXopenCPLEX ([I) J
- 6594 >> | init in ilog.cplex.CplexI
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 629 | <Init> in '
| 11067 | <Init>. ilog.cplex.IloCplex in
| 11082 | <Init> in '
| 93 | save. . agriplan.APProjectController in
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run. . . java.util.concurrent.ThreadPoolExecutor $ Worker in
^ 745 | run in java.lang.Thread
开发人员告诉我它来自 IloCplex CPLEX IloCplex = new (); 它不起作用。
我猜问题是找不到 CPLEX 的程序 所以我在 Grails Options "VM options" 中添加了 CPLEX 的路径:
-Djava.library.path = / Opt / IBM / ILOG / CPLEX_Studio126 / CPLEX / bin / x86-64_linux
但我有同样的错误
用户没有忘记在程序库中实现cplex.jar
问题出在服务器端还是应用程序内部? 他在 IntelliJ Idea 的其他地方有什么要说的吗?
我们是否应该在 IntelliJ Idea 中声明其他内容?
非常感谢
【问题讨论】:
标签: java grails intellij-idea tomcat8 cplex