I have read many forums but I have not found anything about it for IntelliJ Idea.
I'm not a developer but I manage a Tomcat8 server on Debian.
A developer wants to use IBM ILOG CPLEX in its Grails application. He uses the IDE "IntelliJ Idea." He would make it work by creating objects like this:
// Create the shape / object solver
IloCplex CPLEX IloCplex = new ();
System.out.println ( "\ n IloCplex CPLEX IloCplex = new ();");
...
...
The PC user is a windows and IntelliJ IDEA and CPLEX are installed. With this configuration the program works.
When the program is exported .war and transferred to the tomcat server, it no longer works.
we have the error:
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
The developer told me it was from the line IloCplex CPLEX IloCplex = new (); that it does not work.
I guess the problem is the program that does not find CPLEX So I add the path of CPLEX in Grails Options "VM options":
-Djava.library.path = / Opt / IBM / ILOG / CPLEX_Studio126 / CPLEX / bin / x86-64_linux
But I have the same error
The user has not forgotten to implement the cplex.jar in the program library
The problem is it on the server side or within the application? There he has something to say elsewhere in IntelliJ Idea?
Should we declare something else in IntelliJ Idea?
thank you very much