In This Topic
System Requirements
DsExcel Java requires the following system requirements depending upon the framework you are using to create an application.
- Java Development Kit (JDK) 8.0 or higher.
- Any Java IDE (Eclipse, IntelliJ etc.) , Gradle or Maven.
For OS versions supported in DsExcel Java, refer to System Requirements.
Note: To avoid security issues and improve JDK 8 compatibility, in DsExcel v6.0 release, we have removed support for JDK 7 and earlier versions. In order to upgrade your DsExcel application to JDK 8, you must remove dependency of the dsexcel.extension package and delete *.class and *.jar files related to the extension package.
Note: The DsExcel Java version lower than v5.1.1 will not work in JDK 17 or higher.
Note: With v7.0, gcexcel.jar (GcExcel) package is renamed to dsexcel.jar (DsExcel). The namespaces and classes remain the same, which provide the same functionality and are backwards compatible, ensuring minimal impact on your existing projects.
To upgrade GcExcel package to DsExcel package in your existing projects, follow one of the below options:
- Update package using Migration tool:
- The migration tool is present in the package downloaded from the website. Follow the instructions displayed in the UI when using the tool for a seamless migration. The tool will replace the gcexcel dependencies with dsexcel in pom.xml and gradle build files of your Java projects. If any other change is required in the project, it should be updated manually.
- Update package manually from NuGet package manager:
- Download the DsExcel java package from Maven Central repository or download it locally on your machine from MESCIUS website.
- Open the Eclipse IDE.
- Open the existing Java project.
- In Java settings, under Libraries tab, click gcexcel.jar and then click Remove to remove it and its dependencies from the project.
- Click Add External JARs and select dsexcel-7.0.0.jar to add it to your project.
- Click Finish. The jar file will be added under the Referenced Libraries in your project.
Setting up an application
DsExcel Java API reference is available through Maven Central Repository, a directory that stores all the java archives (.jar files) and adds libraries, plugins and references to your project.
For installation of the product, refer to the following steps:
Step 1 - Download the DsExcel Java package
You can either download the DsExcel java package from Maven Central repository or download it locally on your machine from MESCIUS website.
Step 2 - Install the DsExcel Java package and add dependency for DsExcel library
Complete the following steps to install the DsExcel Java package (dsexcel-7.0.0.jar) and add dependency for DsExcel Java library in your application.
If you are creating an application :
- Using Java Integrated Development Environment (IDE) :
You can install any Java IDE - Eclipse or IntelliJ as per your choice. Shared below are the steps to create a Java application using Eclipse IDE:
- Open the Eclipse IDE.
- Create a new Java project.
- In Project name field, enter the name of your project and click Next.
- In Java settings, under Libraries tab, click Add External JARs.
- Select the dsexcel-7.0.0.jar to add it to your project.
- Click Finish.
- The jar file will be added under the Referenced Libraries in your project.
-
The following dependencies are also required, apart from dsexcel.jar:
- javax.json-1.0.4.jar
- fontbox-2.0.24.jar
- pdfbox-2.0.24.jar
- commons-logging-1.2.jar
- gson-2.8.9.jar
- Using the Gradle project:
Open the build.gradle and append the following script in the dependencies block:
compile("com.mescius.documents:dsexcel:7.0.0") |
- Using the Maven project:
Open the pom.xml and add below xml element in the dependencies node.
<dependency> <groupId>com.mescius.documents</groupId> <artifactId>dsexcel</artifactId> <version>7.0.0</version> </dependency> |
The jar file will be added as a library in the project and your project can now reference all classes of DsExcel in the jar file.