If you have a special combined build jar with multiple products you will need to validate the license for each product in the combined jar. Follow the steps below to get the version info and/or validate the license keys for the combined jar files. The below examples are for the jPDFProcess and jWordConvert combined jar. However, the same process can be used for any combined jar files by altering the code to call the specific products within the jar file.

Validate the license key using command-line

You will need to run a separate command for each product in the combined jar. Replace “12345” with the license key for your server.

jPDFProcess License Check
java -cp jpdfprocessandword.jar com.qoppa.pdfProcess.PDFDocument$KeyInfoProcess -validatekey 123425
jWordConvert License Check
java -cp jpdfprocessandword.jar com.qoppa.word.WordDocument$KeyInfoWordConvert -validatekey 123245

If run correctly it should return something like this:

jPDFProcess
Product: jPDFProcess v2016R1.01
Key Validation: Valid
Key Type: Host Name Key
Licensed CPU Cores: 4
Actual CPU Cores: 4
jWordConvert

Product: jWordConvert v2016R2.06

Key Validation: Valid
Key Type: Host Name Key
Licensed CPU Cores: 4
Actual CPU Cores: 4

Validate the license key using Java

You can create a Java program that has the combined jar in the classpath and further validate the license key within your environment. You will need to make a separate call for each product within the combined jar. Replace “12345” with the license key for your server.

jPDFProcess Validate Key
PDFDocument.KeyInfoProcess.main(new String[]{"-validatekey", "12345"});
jWordConvert Validate Key
PDFWord.KeyInfoWordConvert.main(new String[]{"-validatekey", "12345"});

Get product version & server info using command-line

You will need to run a separate command for each product in the combined jar. This will output the server information and product versions.

jPDFProcess Server Info
java -cp jpdfprocessandword.jar com.qoppa.pdfProcess.PDFDocument$KeyInfoProcess -serverinfo
jWordConvert Server Info
java -cp jpdfprocessandword.jar com.qoppa.word.WordDocument$KeyInfoWordConvert -serverinfo