Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

then your PATH was not set properly. The easiest way to deal with this is to add a virtual machine argument to the Run Configuration. Starting from the menu bar at the top, select Run → Run Configurations... and then on the left, make sure Java Application → KnapsackSolver is selected. In the center panel, pick the ( x )=Arguments tab. In the second box, titled VM Arguments, add the line:

  • Linux: -Djava.library.path=/opt/ibm/ILOG/CPLEX_Studio125/cplex/bin/x86-64_sles10_4.1
  • Windows: ??
  • Mac: ??

As you can see, the VM argument is telling java the directory that the c code of cplex is located in.

Finally, hit Run on the bottom.