How to apply license file to apose-image 2.0

I downloaded the aspose-imaging version 2.0, and try to apply the license file I purchased, but failed. In the sample code, there should be a class com.aspose.imaging.license.License in the jar, but I browse the jar I download, there is no such class, or even com.apose.image.license.*. Did I miss anything or download the wrong file?

Hi Chang,

Thank you for using Aspose products.

I have verified on my end, Aspose.Imaging for Java API has com.aspose.imaging.License class that will be further used to set the license. I suspect you are referencing some older version of Aspose.Imaging for Java API. Could you please download the latest version again from this link, and add the reference to your project by first removing any older references? Moreover, if you are using many Aspose products in a single project, I would recommend you to create a simple project first just for testing purposes.

Please note, I have verified the latest build of Aspose.Imaging for Java 2.0.0 with Eclipse Indigo and JDK 1.6 in Windows 7 Home Premium environment. In case you are using any other version of JDK or your problem persists, please share environment details such as,

  • Operating System version
  • Operating System Service Pack version
  • Architecture (32bit/64bit)
  • JDK version
  • Any other details that you think would help us to identify the problem cause on our end

Once we have complete details, we will simulate your environment on our end, and try replicating the issue again.

Hi,


It seems the example code inside LicenseUtil.java inside Aspose.Imaging.Examples is wrong. It import
“com.aspose.imaging.license.License”, which should be “com.aspose.imaging.License”.

Thanks!


Hi Chang,

I have checked that the older examples refer to com.aspose.imaging.license.License class but in recent releases your mentioned problem does not exist. I have reconfirmed with Aspose.Imaging for Java 2.0.0 as well. Could you be kind enough to point out from where you have downloaded the said examples, so we could correct this issue for future?

Thank you for your cooperation.