Free Support Forum - aspose.com

Licence Application for Utility app


#1

How to assign the aspose total license ?
How to add the license to single java class ?

I understand it something like this

License license = new License();
license.setLicense(“Aspose.Total.Java.lic”);

Please help and suggest.


#2

@sinhaki,

Thanks for your query.

If you use several Aspose products in an application, for example Aspose.Words and Aspose.Cells, here are few useful tips.

  • Set the license for each Aspose product separately.
    Even if you have a single license file for all components, for example ‘Aspose.Total.Java.lic’, you still need to call the License.setLicense method separately for each Aspose product.
  • Use fully qualified License class name.
    Each Aspose product has a License class in its namespace. For example, Aspose.Words has com.aspose.words.License and Aspose.Cells has com.aspose.cells.License class. Using the fully qualified class name allows you to avoid any confusion about which license is applied to which product.