Community

Hello world code in Flexicapture using JAva

I'm trying to write a basci code in JAVA

the hello program mentioned in Abbyy sdk samples



import com.abbyy.FCEngine.*;

public class FlexiCaptureTestEnginCreation {

public static void main( String[] args )

{

try{

// Load the Engine

IEngine engine = Engine.Load( "CProgram Files (x86)/ABBYY SDK/10/FlexiCapture Engine/Bin", "SWTT1000000322xxxxxxxxxx", "" );

}

catch (Throwable ex) { ex.printStackTrace(); }

}

}

"CProgram Files (x86)/ABBYY SDK/10/FlexiCapture Engine/Bin" is the DLL path of Abbyy in my system, i've also mentioned/tryied below path :

"%ProgramData%\ABBYY\SDK\10\FlexiCapture Engine"


but nothing is working,

Stack Trace:

java.lang.Exception: Unspecified error

at com.abbyy.FCEngine.Engine.load(Native Method)

at com.abbyy.FCEngine.Engine.Load(Engine.java:13)

at FlexiCaptureTestEnginCreation.main(FlexiCaptureTes tEnginCreation.java:9)

even when i click on "at com.abbyy.FCEngine.Engine.Load(Engine.java:13)" it says "13 line number is not valid line number"

Was this article helpful?

0 out of 0 found this helpful

Comments

4 comments

  • Avatar
    Sushi


    Nitingua,

    It might be best to contact your local region for code help. It seems like talking about FlexiCapture 10 SDK and not FlexiCapture 10 Application. These forum are really for prebuilt application by ABBYY. i.e. Recognition Server or FlexiCapture app. Yeah I know its a bit confusing since we use the same name for 2 product. one SDK and one Application.
    0
  • Avatar
    Nitingupta
    Nitingua, It might be best to contact your local region for code help. It seems like talking about FlexiCapture 10 SDK and not FlexiCapture 10 Application. These forum are really for prebuilt application by ABBYY. i.e. Recognition Server or FlexiCapture app. Yeah I know its a bit confusing since we use the same name for 2 product. one SDK and one Application.

    Thank You Sushi, Apparently i've solved the issue but i need to know about how can i get Code help, is there any fourm for this.
    google is not able to answer me . pls help
    0
  • Avatar
    alehandro
    Nitingupta, I have a same problem java.lang.Exception: Unspecified error. How you solved this?
    0
  • Avatar
    Nitingupta
    Nitingupta, I have a same problem java.lang.Exception: Unspecified error. How you solved this?

    I did load the engine in different way: here is the trick i did

    IEngineLoader engineLoader= Engine.CreateEngineOutprocLoader();


    and follow this link if u r having any issue with licence or 32bit machine issue
    http://knowledgebase.abbyy.com/article/1162
    0

Please sign in to leave a comment.