Articles in this section
Category / Section

How to run Syncfusion Java Word library (DocIO)

3 mins read

Syncfusion® Java Word library (Essential® DocIO) is used to create, read, edit, and convert Word documents programmatically without Microsoft Office or interop dependencies.

 

You can get the required Jars from this link to run the Syncfusion® Java Word library (Essential® DocIO).

Steps to run the Syncfusion® Java Word library (Essential® DocIO)

  1. Open the command prompt and navigate to the samples root directory.
  2. Set the Java path using the following command.

Syntax:

set path=<jdk_installed_location>

Example:

set path=C:\Program Files\Java\jdk-12.0.1\bin

  1. Compile the sample with the dependent jars file using the following command.

Syntax:

javac -cp “<jar_file1_location>;.;”<jar_file2_location>” sampleFolder/ FileName.java

Example:

javac -cp "D:\java-demos\Jarfiles\syncfusion-docio-18.4.0.30.jar";.;"D:\java-demos \Jarfiles\syncfusion-javahelper-18.4.0.30.jar" helloworld /HelloWorld.java

  1. Then, run the sample using the following command.

Syntax:

java -cp “<jar_file1_location>;.;”<jar_file2_location>” sampleFolder/FileName.java

Example:

java -cp "D:\java-demos\Jarfiles\syncfusion-docio-18.4.0.30.jar";.;"D:\java-demos\Jarfiles\syncfusion-javahelper-18.4.0.30.jar" helloworld/HelloWorld.java

Take a moment to peruse the documentation. You can find the basic Word document processing options along with features like mail merge, merge, and split documents.

Explore more about the rich set of Syncfusion® Word Framework features and explore Java Word demos for more Word document processing examples using the Syncfusion® Java Word Library.

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied