Hello,
I tried to research this forum about my issue. Unfortunately I wasn't able to identify a solution to my problem when loading the aspose-Cells for Java license. Let me give you some more details first:
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.7.0_02-b13
within Eclipse RCP
I tried to utilize both methods for accessing the license, e.g.
License asposeLic = new License();
asposeLic.setLicense("c:\\pathToLicenceFile\\Aspose.Cells.lic");
as well as via FileStream. In both ways I am getting an exception:
com.aspose.cells.CellsException: Cannot find black listed licenses resource or black list is invalid. Please report this error to Aspose.
at com.aspose.cells.License.b(Unknown Source)
at com.aspose.cells.License.d(Unknown Source)
at com.aspose.cells.License.a(Unknown Source)
at com.aspose.cells.License.setLicense(Unknown Source)....
Can you give me idea what can be wrong? Thank you very much in advance!
The same happens when I try to use aspose.Slides in my environment. aspose.Slides is licensed to my company, cells is still in evaluation phase.
Best regards
Markus
Hi,
Which version of the product (Aspose.Cells for Java) you are using, please use our latest version v7.3.2. Also, since License file is present in all Aspose products, so please always use full naming while defining objects, e.g
com.aspose.cells.License asposeLic = new com.aspose.cells.License();
asposeLic.setLicense(“c:\pathToLicenceFile\Aspose.Cells.lic”);
Moreover, please make sure you are using all the prereqs. needed by Aspose.Cells for Java. These prereqs. have their versions in relation to JDK 1.4, JDK 1.5, JDK 1.6+
Assuming, your JDK is 1.7, so get the files from jdk1.6 folder at your installed directory, then these are the files.
aspose-cells-7.3.2.jar (Aspose.Cells for Java v7.3.2)
bcprov-jdk16-146.jar
dom4j-1.6.1.jar
stax2-api-3.0.2.jar
woodstox-core-asl-4.1.1.jar
If the problem still occurs, please provide us your license file via email, please follow the steps on how to send your license file to us:
We will check your license soon.
Thank you.
Hi,
thanks for the quick reply.
We are using V7.3.2 and included all mentioned libraries. JDK1.7 within Eclipse RCP is our development environment.
Will send you our evaluation license file. Our purchase order is already issued, we are actually waiting for our permanent license.
Thanks
Markus
Hi,
Thanks for sending us the License file.
Well, I have tested your issue and it works absolutely fine here. I used a sample code (as given below) and the output file (attached) is fine. I do not get any error at all. Currently I have JDK1.5 and 1.6 environments, so I have to test your case on it, I did not setup JDK1.7 environment, we will do it soon.
Sample code:
License asposeLic = new License();
asposeLic.setLicense(“d:\files\License\Aspose.Cells.lic”);
Workbook wb = new Workbook();
Cells cells = wb.getWorksheets().get(0).getCells();
cells.get(“A1”).putValue(“Hello World!”);
wb.save(“d:\files\outTestLic.xlsx”);
By the way, could you use JDK 1.5 libraries (extracting the release archive i.e. v7.3.2) to test it on your JDK1.7 if it works fine or you still find the same issue?
Thank you.