Community

How to setup ABBYY FineReader Engine 12 with Java?

Hello good people,

Am new to using Abby FineReader and I successfully installed it on my machine but the challenge am facing is with the run the sample code for Java.

Needed help with how I can set it up properly.

Kindly advise.

Best Regards,
Kakooza Allan Klaus

Was this article helpful?

1 out of 1 found this helpful

Comments

10 comments

  • Avatar
    Nikolai Kromm

    Hello,

    You can refer to the following instruction for Java Hello sample for FineReader Engine 12 for Windows:

    1. Edit ..\Env.cmd file to set the correct path for JDK (Java Development Kit) on your machine.
    2. Launch Make.cmd file to create java objects.
    3. Launch Run.cmd to start execution of the sample.

    Additionally, please make sure that GetCustomerProjectId from SamplesConfig.java returns the appropriate value for your current license.

    1
  • Avatar
    Kakooza-Allan-Klaus

    Thanks Nikolai Kromm

    But when it the Env.cmd file I've failed to locate it

     

    0
  • Avatar
    Kakooza-Allan-Klaus

    This the what I get but when I click install plugins

    When I click any of the two nothing changes.

    I've checked with SampleConfig.java and everything seems to be fine.

    Am having an issue with step 1 of Edit ..\Env.cmd

    If you please help e hack that I guess I'll be good to go.

    Thank you in advance.

    0
  • Avatar
    Kakooza-Allan-Klaus
    set JDK=Directory\where\jdk\resides
    set ABBYY_FRENGINE_JAR="..\..\..\inc\Java\com.abbyy.FREngine-12.5.15.0.jar"

    Changed it to.

    set JDK=C:\Program Files\Java\jdk-19
    set ABBYY_FRENGINE_JAR="..\..\..\inc\Java\com.abbyy.FREngine-12.5.15.0.jar"

     

    0
  • Avatar
    Nikolai Kromm

    Hello,

    Env.cmd for Java samples is located by default in C:\ProgramData\ABBYY\SDK\12\FineReader Engine\Samples\Java folder. 

    Please let me know if you were able to run the sample after the change.

    0
  • Avatar
    Kakooza-Allan-Klaus

    Yeah I managed to make the necessary changes as advised but the the make and run is where am having the issue now

     

    0
  • Avatar
    Nikolai Kromm

    Hello,

    The Hello sample was made to be run from the Command Prompt.

    Please let me know your current environment, describe the new issue, and I might be able to help you.

    0
  • Avatar
    Kakooza-Allan-Klaus

    How can I run it in cmd

    0
  • Avatar
    Nikolai Kromm

    Hello,

    To open the Command Prompt itself

    1. Press +S on your keyboard.
    2. Type cmd in the search field.
    3. If you want to run the command prompt, click Command Prompt.

    In the Command Prompt type

    1. cd C:\ProgramData\ABBYY\SDK\12\FineReader Engine\Samples\Java\Hello
      to go to the sample folder
    2. Make.cmd
      to build the sample
    3. Run.cmd
      to run the sample

    It should look something like this:

    0
  • Avatar
    Kakooza-Allan-Klaus

    Thanks Nikolai Kromm
    So every time am running it that's what am supposed to do.
    Am not supposed to run it on from my IDE

     

     

    0

Please sign in to leave a comment.