Using OCR Library - Getting Environment Variable not defined exception

Using OCR Library - Getting Environment Variable not defined exception

Hi Team,

  I have downloaded catalyst-java-sdk-1.6.0 library and have written code to get the text from cheque, the code is given below.

File file = new File("D:\\Cancell cheque.pdf"); //Specify the file path
ZCOCROptions options = ZCOCROptions.getInstance().setModelType(ZCOCRModelType.CHEQUE); //Set the model type
ZCContent ocrContent = ZCML.getInstance().getContent(file, options); //Call getContent() with the file object to get the detected text in ZCContent object
ZCChequeData  chequeData = ocrContent.getChequeData(); //This method obtains the cheque data

//To fetch individual elements like the account number, IFSC code, bank name, branch, amount, and date of transaction from the processed image 
Long  accountNumber = chequeData.getAccountNumber();
String  ifsc = chequeData.getIfsc();
String  bankName  = chequeData.getBankName();
String  branchName  = chequeData.getBranchName();
String amount   = chequeData.getAmount();
Date date = chequeData.getDate();


While executing the line ZCML.getInstance().getContent we are getting Environment Variable not defined exception, Kindly help us to resolve this issue

    • Announcements

    • [Webinar] How Raptee.HV accelerates its EV platform

      Curious about how EV platforms work behind the scenes? What does it actually take to run an EV platform from onboarding users to managing connected vehicles and deploying updates seamlessly? In this session, Raptee.HV shares how their platform is built
    • [Webinar] Deploy Docker apps with AppSail's custom runtime | Feb. 19

      Hi everyone, Join us on February 19, 2026 at 8–9 PM IST for a live Catalyst webinar demonstrating how to deploy OCI-compliant Docker images with AppSail's custom runtime. You’ll learn how to: Package your apps as Docker containers Deploy via CLI or connect
    • Catalyst backs Vite.js!

      Hi everyone, We're happy to support the open-source ecosystem that powers modern web development! If you’re building apps with Vite, Catalyst Slate is your go-to platform to deploy blazing-fast frontend apps with ease, scalability, and zero infrastructure
    • Catalyst QuickML 2025 Year In Review

      Hello everyone 👋 It’s been an exciting year for Catalyst QuickML. In 2025, as the Catalyst platform continued to expand its capabilities, QuickML focused on strengthening reliability, developer control, and operational readiness across the AI lifecycle.
    • Introducing GenAI Features in Catalyst QuickML

      Hi everyone, Building machine learning models can often feel slow and complex, especially when teams wait for perfect certainty before testing their ideas. But in reality, faster progress comes from early experimentation—trying out models quickly, learning

      Catalyst Community