How do I add Apache Batik and OpenePnP libraries in my project

209 views Asked by At

Here is problem

Please guide me

I tried to add libraries which I download and it didnot work. can someone help me to solve this problem

1

There are 1 answers

0
AudioBubble On

If you are using maven :

For For Apache Batik:

<dependency>
  <groupId>org.apache.xmlgraphics</groupId>
  <artifactId>batik-all</artifactId>
  <version>1.13</version>
</dependency>

For For OpenPnP:

<dependency>
  <groupId>org.openpnp</groupId>
  <artifactId>openpnp-lib</artifactId>
  <version>2.2.0</version>
</dependency>

Apply the import as required.

import org.apache.batik.dom.svg.SVGDOMImplementation;
import org.openpnp.model.LengthUnit;

If you are not using maven:

1.Download the latest version of the libraries from the Apache Batik website (https://xmlgraphics.apache.org/batik/) and the OpenPnP website (http://openpnp.org/).

2.Add the libraries to your project's classpath. This will typically involve adding the libraries to your project's build path or referencing them in your build tool's configuration files.

Doing above must help you in general.