Licensing

Evaluate Aspose.ZIP

You can download Aspose.ZIP for Java free of cost for evaluation. The evaluation version provides almost all functionality of the product with certain limitations. The same evaluation version becomes licensed when you purchase a license and add a couple of lines of code to  apply the license.

If you want to test Aspose.ZIP without evaluation version limitations, you can also request a 30 Day Temporary License. Please refer to How to get a Temporary License?

Evaluation Version Limitations

The evaluation version of Aspose.ZIP (without a license specified) provides full product functionality except for some evaluation limitations.

Usage contextRestrictions
Size of data to compressNo more than 532,768 bytes of each entry to be compressed
Size of data to decompressNo more than 500,000 bytes of each entry to be decompressed
CRC verification on decompressionNot performed
MAC verification on decompression in an encrypted fileNot performed
Number of entries compressedNo more than 10

Applying a License

You can easily download an evaluation version of Aspose.ZIP from its  download page. The evaluation version provides absolutely the same capabilities as the licensed version of Aspose.ZIP. Furthermore, the evaluation version simply becomes licensed when you purchase a license and add a couple of lines of code to apply the license.

About the License

The license is a plain-text XML file that contains details such as the product name, number of developers it is licensed to, subscription expiry date and so on. The file is digitally signed, so don’t modify the file. Even the inadvertent addition of an extra line break into the file will invalidate it.

You need to set a license before utilizing Aspose.ZIP if you want to avoid its evaluation limitations. It is only required to set a license once per application (or process).

Apply License Using File or Stream Object

Setting a License in Aspose.ZIP for Java

In Aspose.Zip, the license can be loaded from a file, stream or an embedded resource. Aspose.ZIP tries to find the license at the following locations:

Use the License.setLicense method to license the component. Often the easiest way to set a license is to put the license file in the same folder as Aspose.ZIP.jar and specify just the file name without path as shown in the following example:

Example 1

In this example Aspose.ZIP will attempt to find the license file in the folder that contain the JARs of your application.

1com.aspose.zip.License license = new com.aspose.zip.License();
2license.setLicense("Aspose.ZIP.Java.lic");

Example 2

Initializes a license from a stream.

1com.aspose.zip.License license = new com.aspose.zip.License();
2license.setLicense(new java.io.FileInputStream("Aspose.ZIP.Java.lic"));

Applying a Metered (pay-per-use) license

A Metered license is a licensing mechanism that allows customers to be billed based on the usage of the API features. For more details, please refer to Metered Licensing FAQ section. To activate the Metered license you need public and private keys.

Applying a Metered license is as simple as those two lines of code:

1Metered metered = new Metered();
2metered.setMeteredKey("PublicKey", "PrivateKey");
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.