Hi friends,
I'm using Aspose.Words.jdk14.jar in a web application running under Tomcat. This jar is located into the lib directory of my application and there also I pasted the licence file Aspose.Custom.lic
So, before I use any Document instance I called the next method :
private void loadLicense() throws Exception{
License license = new License();
license.setLicense("Aspose.Custom.lic");//throws exception
}
the second line of method throws an Exception: java.lang.Exception: Cannot find license 'Aspose.Custom.lic'.
I did a second test moving the licence file to C:\\ and also changing the line code to :
license.setLicense("C:\\Aspose.Custom.lic");//NO exception
This way works.
How can I do to get the licence file from my application directoy?