Link

Add as a Gradle dependency

This tutorial assumes that the JPedal jar file is named “jpedal.jar”, if you’re using the trial jar, make sure to rename the file to “jpedal.jar” before following this step.

In order to use JPedal in a Gradle project, you will need to add the jar to the project as a dependency. To do this you will need to first download the JPedal jar by signing up for a JPedal trial or by visiting the customer download page.

First add JPedal jar into your project lib folder, and then either:

Option 1

Add a flatDir repository and a dependency to the build.gradle file.

repositories {
    flatDir {
        dirs 'lib'
    }
}

dependencies {
    implementation 'idrsolutions:jpedal'
}

Option 2

Add a file dependency to the build.gradle file.

dependencies {
    implementation files('lib/jpedal.jar')
}

(Version tested: Gradle 6.6.1)

Still need help? Send us your questions.