PrettyGirl
PrettyGirl

Reputation: 31

trying to use tess4j for the first time with eclipse(any step by step for trully beginner)

I need a step to step on how to plug tess4j to Eclipse. I found this online:

  1. creating a lib directory and copied the tess4j.jar and its required jar in;
  2. added the jars to build path
  3. copied the tessdata directory and tessdll.dll file into the project root directory.

Now it just works.

I only know basic Java so I have no idea what creating a lib directory and copy directory file means at all. Can someone help me to plug this library and make it work for eclipse because I am working in a project that needs ocr.

Upvotes: 1

Views: 6198

Answers (1)

siegi
siegi

Reputation: 5996

creating a lib directory and copied the tess4j.jar and its required jar in;

A JAR (Java ARchive) file is a collection of compiled Java classes. This is the usual way to distribute Java libraries. You should create a new folder in your project (right click your project, "New", "Folder") and copy/move the JAR you downloaded to this newly created directory. If tess4j has dependencies, i.e. needs other JARs to work, you have to put them in this directory.

added the jars to build path

You need to tell Eclipse to add the JARs to the build path, i.e. Eclipse needs to know where to get the tess4j classes from. Locate the lib folder and select all JAR files. Right click them and select "Build Path", "Add to Build Path".

copied the tessdata directory and tessdll.dll file into the project root directory.

Should be clear ;-)

Upvotes: 2

Related Questions