...
- Windows:
C:\Program Files\IBM\ILOG\CPLEX_Studio125\cplex\lib\cplex.jar
- Linux:
/opt/IBM/ILOG/CPLEX_Studio125/cplex/lib/cplex.jar
TODO check - Mac: Unknown.
Copy the file cplex.jar and paste it in the newly created lib
folder in our project. Right click on sandbox
in the package explorer, then select Build Path → Configure Build Path... Select the Libraries tab, then hit the Add JARs button (see here for an explanation of what all these buttons do). Select the file sandbox/lib/cplex.jar
, then hit OK until we have exited all the menus.
Open up KnapsackSolver
and replace the text of the file with the following:
...