Prev |  | Next

## 12.4. Set Paths Using System Properties

The files `pdfunit.config` and the license key file can be placed outside of the classpath. But then their location has to be declared by Java system properties. The keys of the properties are:

- `-Dpdfunit.configfile`

- `-Dpdfunit.licensekeyfile`

Dependent on your test system (Eclipse, ANT or Maven) these parameters can be set in many ways. Use the common information to see, how Java system properties are set in your specific environment. A less known option is the operating system environment variable `_JAVA_OPTIONS` which works for all test systems:

    set _JAVA_OPTIONS=-Dpdfunit.configfile=..\myfolder\pdfunit.config

If you have questions about this topic, write a mail to info[at]pdfunit.com.

Prev | Up | Next
12.3. Setting Classpath in Eclipse, ANT, Maven | Home | 12.5. Using the pdfunit.config File