Issue with License.setLicense()

Hi,


I’m using Aspose.Slides v14.7.0 and I have got a 30 day license to try this out. And when I try to set the license in the following manner I get a compilation problem "The type com.aspose.slides.p6a2feef8.pbdb106a0.do cannot be resolved. It is indirectly referenced from required .class files"

FileInputStream fstream = new FileInputStream(“C:\Users\John\Downloads\Aspose.Slides.lic”);
License license = new License();
license.setLicense(fstream);

Any help would be much appreciated. Thanks!



Hi John,

Thanks for your interest in Aspose.Slides.

I have observed the requirement shared by you and it seems that probably Aspose.Slides jar file is not been able to properly accessed in your application. Can you please try using only the following statements in a sample console java application with any sample presentation and share your feedback.

Presentation pres=new Presentation(“Test.pptx”);
pres.save(“test.pdf”,SaveFormat.Pdf);

If the above statements are executed successfully then try loading the License as well in the same sample console application. If there is still an issue then please share the complete details of your environment, sample application, java and operating system details with us.

Many Thanks,

Hey Mudassir,


I’m able to run the sample console application of converting a pptx to pdf without any issue. Only when I try to set the license, I get the compilation issue.


I’m using Aspose.Slides v14.7.0
jdk1.7.0_55
Eclipse Juno
Windows 7 Professional

Thanks

Hi John,

Thanks for your feedback. Can you please try using the following sample code on your end with your license. If there is still an issue then please share the license file with us for further investigation on our end.

String path=“D:\Aspose Data\”;

com.aspose.slides.License lic=new License();
lic.setLicense(path+“Licenses\Aspose.Slides.lic”);

Presentation pres=new Presentation(path+“Title2007.pptx”);
pres.save(path+“Title2007.pptx.pdf”, SaveFormat.Pdf);

Many Thanks,

Hi,


Issue might be with class path I guess, once I created a new project and added the jar to classpath, I was able to set the license without any issues.

Thank you for your prompt responses and help.

Hi John,

That is really appreciable that things have been sorted on your end. Please share, if I may help you further in this regard.

Many Thanks,