Preparing a Java Development Environment
Scenario
OCR JAVA SDK supports Windows, Linux, and Mac operating systems. This section uses Windows as an example to describe how to configure the environment. Table 1 describes the required operating environment.
Procedure
The following describes how to configure the JDK 8 (64-bit) in the Windows 7 environment. If you have downloaded JDK and configured the environment, skip steps 1 to 4. The following uses Eclipse as an example to describe how to import the SDK project. Operations of other IDEs are similar to those of Eclipse.
- Download the JDK file.
- After the JDK file is downloaded, install the JDK as prompted. For example, install the JDK to the C:\Program Files\Java\jdk1.8.0_131 directory on the local PC.
- Right-click Computer, choose Properties > Advanced System Settings > Environment Variables, and perform the following operations to configure Java environment variables:
- Create system variable JAVA_HOME whose value is the JDK installation path.
- Add %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin to Path. Separate multiple values with semicolons (;).
- Open the command line interface (CLI) and run java -version. If the information shown in Figure 1 is displayed, the configuration is successful.
- Install Eclipse
Download Eclipse, for example, eclipse-jee-mars-R-win32-x86_64.zip, from https://www.eclipse.org/downloads/packages/. Extract and open Eclipse. Configure the correct JRE path in Window > Preferences > Java > Installed JREs.
- Import the Java SDK project.
- Right-click on the Package Explorer page on the left and choose Import from the shortcut menu.
- Choose General > Existing Projects into Workspace.
- Click Next, select the Maven dependency mode, and select the path where the OCR SDK demo package is stored.
- Click Finish to import the demo project. After the demo project is imported, open it. The project directory is as follows: Figure 2 Project directory
Last Article: SDK Environment Setup
Next Article: Preparing a Python Development Environment

Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.