You can store the .lic file to the work dir of your app, to the classpath root (including root folders of .JAR files) or you can simply pass the activation code from the .lic file to PD4ML constructor.

A valid .lic file or its activation code, even its associated maintenance period has expired, needs to be passed to PD4ML, otherwise PD4ML switches to demo/evaluation mode.