Unable to use the lic file Aspose.DiagramforJava

I have received License file. When i try to use in Code, its throwing below message.

com.aspose.diagram.DiagramException: License signature reading error or signature is invalid.
at com.aspose.diagram.License.a(Unknown Source)
at com.aspose.diagram.License.a(Unknown Source)
at com.aspose.diagram.License.a(Unknown Source)
at com.aspose.diagram.License.setLicense(Unknown Source)
at com.aspose.diagram.License.setLicense(Unknown Source)
at com.item.map.CreateOrgFlowChart.main(CreateOrgFlowChart.java:47)

@elan7
Please post your license file via private message.
In order to send a private message with attachment, please click on my name and find “Message” button.
To evaluate your issue precisely, kindly share your license file with us. In order to share your license file with us, please follow the instructions provided in the following link:
How to Send License File to Support Team

We will investigate the issue and provide you more information on it.
Thanks.

P.S. Please do not share your license file publicly in forum threads.

@elan7
Thanks for the license file via private message and your “Aspose.DiagramforJava.lic” works fine on our end when testing it with the latest (24.1) version of Aspose.Diagram for Java.
Please try the latest version 24.1 of Aspose.Diagram for Java,Thanks.

Its still not working. Do you need to set some permission from your end.
Thanks,
Elan.

Error message below for reference
com.aspose.diagram.DiagramException: License signature reading error or signature is invalid.
at com.aspose.diagram.License.a(Unknown Source)
at com.aspose.diagram.License.a(Unknown Source)
at com.aspose.diagram.License.a(Unknown Source)
at com.aspose.diagram.License.setLicense(Unknown Source)
at com.item.map.CreateOrgFlowChart.main(CreateOrgFlowChart.java:51)

@elan7
No, you don’t need to set any permissions from your end.
Could you please share your working environment e.g. operating system, Java version, project type that you are using?
Thanks.

RESOLVED
I have sorted out now. Its because of the project type. I was using in Maven Project, now changed to JAVA. Its working as expected.

@elan7
It is great that you were able to resolve this issue on your end. In case you have further inquiries or may need any help in future, please let us know by posting a new thread in Aspose.Diagram forum.