Where to place License SLC file

Hi Iam developing an application in which I am calling the api to compile and execute Jobs i.e the embedded approach. I made a drxml file, a process file, customizer and also dr file and I have placed the slc license file in the folder that contains dre.jar. When from java code I called DJob.run I go the error that:

SEVERE: License file not found : com.pervasive.datarush.license
Exception in thread "main" com.pervasive.dataflow.dev.DRCompositeException: EditDistanceSample{EditDistanceSample=com.pervasive.dataflow.compiler.CompilerInternalException: com.pervasive.dataflow.dev.DRException: License file for DataRush engine is not valid }
EditDistanceSample

I have just started running datarush using the embedded approach so can someone help me as to where to place this slc file? Thank You.

Trackback URL for this post:

http://www.pervasivedatarush.com/trackback/210

Embedded applications can place their DataRush.slc anywhere in the file system : just set the system property com.pervasive.datarush.license to point to this location when you launch the JVM (or at least, before you load any DataRush classes). The sample build.xml and the command-line wrappers also set this system property.