许可证设置失败: Failed to set license. Details: Signature length not correct: got 256 but was expecting 128
这个为什么失败
代码:
// 使用类加载器加载 resources 目录下的许可证文件
ClassLoader classLoader = test.class.getClassLoader();
InputStream licenseStream = classLoader.getResourceAsStream("Aspose.CADforJava.lic");
if (licenseStream == null) {
System.out.println("无法找到许可证文件: Aspose.CAD.lic");
return;
}
// 设置 Aspose.CAD 许可证
License license = new License();
try {
license.setLicense(licenseStream);
} catch (Exception e) {
System.out.println("许可证设置失败: " + e.getMessage());
return;
}