ILOG CPLEX 11.0 User's Manual > Programming Considerations > Licensing an Application > Examples > The putenv Method for Java Users

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);
}