Aspose.words for java error licensing

I downloaded Aspose.Words.jdk15.jar for evaluation, then today I bought the Aspose.Words.lic…They all in the same folder, but I got errors…any idea?

I put them in the same folder as jar; then copied over the java code

com.aspose.words.License license = new com.aspose.words.License();
license.setLicense("Aspose.Words.lic"); 

This is the java exception i got - java.lang.Exception: Cannot find license ‘Aspose.Words.lic’.

This message was posted using Email2Forum by Merit.

Hi
Thanks for your request. You can also try using the explicit path. For example:

com.aspose.words.License license = new com.aspose.words.License();
license.setLicense("C:\\Temp\\Aspose.Words.lic");

Also you can try putting your license into the root folder of your application.
Hope this helps.
Best regards.