We had just purchased for Aspose.Words for Java. Then I tried to test the license file but I got the error message below.
Here is the snippet java code, I am using for test the license file.
License license = new License(); File f = new File("D:\\Softwares\\Aspose Trial 11.7 .Words.Java\\purchased_license\\Aspose.Words.lic"); license.setLicense(new FileInputStream(f)); // ---> The exception was thrown from this line.
[Fatal Error] :1:1: Content is not allowed in prolog. org.xml.sax.SAXParseException: Content is not allowed in prolog. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) at com.aspose.words.HH.V(Unknown Source) at com.aspose.words.License.setLicense(Unknown Source)
What could be the problem?
Now I am using Aspose.Words for java version 11.7.