Installation

Overview

This guide shows how to add Aspose.Cells FOSS for Java to your project and verify the installation with a short test program.

System Requirements

  • Java: 17 or later
  • Build tool: Maven 3.9+ or Gradle 8+
  • License: MIT — no commercial Aspose runtime required

Maven Installation

Add the following dependency to your pom.xml. This pulls in the cells-foss artifact from Maven Central, which provides all classes in the com.aspose.cells_foss package:

<dependency>
  <groupId>org.aspose</groupId>
  <artifactId>aspose-cells-foss</artifactId>
  <version>26.5.0</version>
</dependency>

Then run the following command to download the dependency and compile your project:

mvn clean install

Verify the Installation

Create a simple test class to verify the library is available:

import com.aspose.cells_foss.Workbook;
import com.aspose.cells_foss.Worksheet;

public class InstallTest {
    public static void main(String[] args) {
        try (Workbook workbook = new Workbook()) {
            WorksheetCollection sheets = workbook.getWorksheets();
            Worksheet sheet = sheets.get(0);
            sheet.setName("Test");
            workbook.save("test.xlsx");
            System.out.println("Installation verified — test.xlsx created.");
        } catch (Exception e) {
            System.err.println("Installation failed: " + e.getMessage());
        }
    }
}

Next Steps

See Also

 English