Getting Started
Contents
[
Hide
]
This page will show you how to install Aspose Cells for Java, and create a Hello World application.
System Requirements
Aspose.Cells for Java supports the following Java versions:
- J2SE 6.0 (1.6)
- J2SE 7.0 (1.7)
- or above
Installation
Install Aspose Cells for Java from Maven Repository
Maven is the easiest way to download and install Aspose.Cells for Java.
- Specify Aspose Maven Repository configuration/location in your Maven pom.xml.
- Define Aspose.Cells for Java API dependency in your pom.xml.
Install Aspose Cells for Java manually
- Download aspose-cells jars into a folder.
- Enter the folder, install the JAR packages manually with Eclipse or Intellij.
Install Aspose Cells for Java with Eclipse:
Install Aspose Cells for Java with Intellij:
Creating the Hello World Application
The steps below creates the Hello World application using the Aspose.Cells API:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
// Create workbook | |
Workbook workbook = new Workbook(); | |
// Add worksheet | |
workbook.getWorksheets().add("HelloWorldPage"); | |
// Set cell value | |
workbook.getWorksheets().get("HelloWorldPage").getCells().get(0, 0).setValue("HelloWorldCell"); | |
// Save workbook | |
workbook.save("HelloWorld.xlsx"); |