File file = new File("/ds/Aspose.Pdf.lic");
InputStream is = new FileInputStream(file);
License aposeLic = new License();
aposeLic.setLicense(is);
Linux Version
Red Hat Enterprise Linux Server release 6.5 (Santiago) …...very slow on linux,but it's fast on windows 10 by the same code...