I am trying to apply the licence to my Aspose.words library through the following code
License license = new License(); license.setLicense("Aspose.Words.Java.lic");
Though I am placing my lic file(named Aspose.Words.Java.lic) in the same lib folder where Aspose.Words is present, I am getting the following exception.
java.lang.IllegalStateException: Cannot find license ‘Aspose.Words’. at com.aspose.words.ws.fS(License.java:826) at [om.aspose.words.ws.fR(License.java:344) at com.aspose.words.License.setLicense(License.java:228)
setLicense(stream) works as desired when I load the file explicitly with File IO and provide stream.