If you are using Eclipse as your IDE to run Adobe PDF Library Java sample programs, we recommend installing Eclipse Oxygen or later.
Note: Before you complete these steps, make sure that you set up your Java samples to work with Maven.
Configure the Maven package
Open Eclipse and create a new workspace. If you are not prompted for a workspace, click File and then Switch Workspace and Other.
Import the project as an existing Maven project.
Click File and Import.
After you open the Import dialog, select Maven, and then click Existing Maven Projects.
Click Browse and navigate to the directory where you have stored the Java sample programs.
You will want to select Java/Sample_Source as the root directory.
Under Projects, the pom.xml file should be selected.
Click Finish. The Maven plugin connectors appear.
Click Finish. You will be asked to confirm what you plan to install.
Click Next. You may be asked to review your choices, and then to accept the terms of the license agreement, Keep clicking Next as needed to step through these pages. You may need to restart Eclipse as well to complete the process.
Create a Run Configuration for a Sample Program
Reopen Eclipse as needed, and open the Maven samples project.
Click Project and Properties.
Select the Run/Debug Settings option.
Click New. Select the Java Application option.
Click the Search button that appears next to the Main class field.
The classes define all the samples available in the package. Click whatever sample program you want to launch.
Click the Arguments tab.
Copy and paste this text as a VM argument in the VM Arguments tab.
Click the Environment tab.
Click New. Add these environment variables:
For Windows, the add screen will look like this:
From here, click Run to run the sample program.