Signing xml invoice

I have installed the sdk , generated csr and privated key but when i run this command
fatoora -sign -invoice invoice.xml

I get this error
fatoora -sign -invoice invoice.xml
********** Welcome to ZATCA E-Invoice Java SDK 3.3.3 *********************
This SDK uses Java to call the SDK (jar) passing it an invoice XML file.
It can take a Standard or Simplified XML, Credit Note, or Debit Note.
It returns if the validation is successful or shows errors where the XML validation fails.
It checks for syntax and content as well.
You can use the command (fatoora -help) for more information.


java.io.FileNotFoundException: /home/ubuntu/Configuration/config.json (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
at java.base/java.io.FileInputStream.(FileInputStream.java:157)
at com.fasterxml.jackson.core.JsonFactory.createParser(JsonFactory.java:1029)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3494)
at com.zatca.config.Config.readResourcesPaths(Config.java:28)
at com.zatca.config.ResourcesPaths.getInstance(ResourcesPaths.java:27)
at com.zatca.sdk.service.ArgumentHandlerService.(ArgumentHandlerService.java:25)
at com.zatca.sdk.MainApp.execute(MainApp.java:52)
at com.zatca.sdk.MainApp.main(MainApp.java:121)
2024-08-01 12:05:55,425 [ERROR] InvoiceSigningService - failed to sign invoice [private key file is not found]

Dear @salman116

Thanks for reaching out, and welcome in our community.

Please make sure to install JDK (Java Development Kit) version 11 in your machine and set-up your environment variable as the JDK 11 mandatory to be installed.

Please let us know if it’s work after installing JDK 11, and don’t hesitate for any further support.

Thanks, and welcome again in our community.
Ibrahem Daoud.

Hi,
Please check if your install.sh was successful and you have paths properly there and FATOORA_HOME = /zatca-einvoicing-sdk-238-R3.3.3/Apps/ is defined. Check if config.json is there in this folder /home/ubuntu/Configuration/
thanks