> Programming Considerations > Licensing an Application > Examples |
Examples |
INDEX PREVIOUS NEXT |
Here are some code samples that illustrate the use of those runtime license routines and methods. The first example illustrates the routine CPXputenv
when opening the CPLEX environment.
Here is an example using Concert Technology for Java users:
IloCplex.putenv("ILOG_LICENSE_FILE=\\license\\access.ilm"); try { cplex = new IloCplex(); } catch (IloException e) { System.err.println("Exception caught for runtime license:" + e); } |
The following is an example showing how to use the routine CPXRegisterLicense
.
Here is an example for Java users applying IloCplex.registerLicense
:
Copyright © 1987-2003 ILOG, S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |