Home > Back-end >  Through matlab invokes the Java and Java inside call again can
Through matlab invokes the Java and Java inside call again can

Time:09-19

I wrote in the Eclipse Java program, it calls can package to solve the mathematical model of normal running results in Eclipse,
Which is then packaged as a jar exported into the corresponding right of matlab directory, but the call in the matlab error is as follows:
Java. Lang. UnsatisfiedLinkError: no cplex125 in Java. If the path
Java. Library. The path must point to the directory containing the can Shared library
Try invoking the Java with Java - Djava. Library. The path=...
Error using solveRMP (43) the line
Java exception occurred:
Java. Lang. UnsatisfiedLinkError: ilog. Can. Can. CPXopenCPLEX ([I) J

The at ilog. Can. Can. CPXopenCPLEX (Native Method)

The at ilog. Can. CplexI. Init (CplexI. Java: 5827)

The at ilog. Can. CplexI. & lt; init> (CplexI. Java: 634)

The at ilog. Can. IloCplex. & lt; init> (IloCplex. Java: 10607)

The at ilog. Can. IloCplex. & lt; init> (IloCplex. Java: 10622)

Online can find I have tried all the methods are still not successful (native library location Settings/external jar. Add can jar/the path environment variable/change the folder permissions have been trying to), but is the eclipse is the right to run the program, matlab calls error,
Now guess because the software is installed on disk C, limited to read and write?
(not installed in the other set is because the current use MAC installed Windows virtual machine, if the internal partition can affect native system again, so just set up a disk C,)
Inquire inquire
  • Related