PDF Java Toolkit

Compiling and running the samples with IntelliJ IDEA

We also describe how to set up IntelliJ as your IDE to run Java sample programs with PDF Java Toolkit.

Open the Maven Project

  1. Open IntelliJ.

IntelliJ initial

  1. Click IntelliJ initial

IntelliJ initial

  1. Select the Samples directory for PDF Java Toolkit:

IntelliJ initial

  1. Select the pom.xml file:

IntelliJ initial

  1. Click IntelliJ initial.

IntelliJ initial

  1. Click IntelliJ initial.
  2. IntelliJ IDEA opens and syncs the Maven project.

Run a Sample Program

These steps describe how to load and run the sample program "Hello World" in PDF Java Toolkit.

  1. After you open the Maven project, this screen appears.

IntelliJ initial

  1. Open the /src directory, and then main/java, and find the HelloWorld program file under creation:

IntelliJ initial

  1. Double click the file name to open the Java program file.

IntelliJ initial

  1. From the Run directory, select Run:

IntelliJ initial

  1. Click Run, HelloWorld, and Run:

IntelliJ initial

  1. A message should appear shortly, showing that the program finished:

IntelliJ initial

  1. The Event Log also shows that the program built and ran successfully:

IntelliJ initial

Changing import settings for a project

If you need to change the import options when you open the project, in IntelliJ, click File and Settings.

Then click Build, Execution, and Deployment.

Select Build Tools, then Maven, and Importing. This screen appears: