---
Product: Aspose.PDF
Platform: java
Page Type: docs
Canonical URL: https://docs.aspose.org/pdf/java/getting-started/installation
---

# Installation

Install Aspose.PDF FOSS for Java via Maven. Requires Java 11 or later. MIT-licensed, no API key needed.

This guide shows how to set up Aspose.PDF FOSS for Java using Maven, verify the
installation, and add the library packages. Aspose.PDF FOSS for Java is MIT-licensed
and requires no API key or commercial agreement.

## System Requirements

Aspose.PDF FOSS for Java requires Java 11 or later (LTS releases recommended).
The library has no proprietary dependencies and is MIT-licensed — no API key or
commercial agreement is required.

## Maven Installation

Add the following dependency to your `pom.xml`. After adding the dependency,
run `mvn dependency:resolve` to download the JAR:

```xml
<dependency>
  <groupId>org.aspose</groupId>
  <artifactId>aspose-pdf-foss</artifactId>
  <version>26.11.0</version>
</dependency>
```

## Library Packages

The library organises all public API classes under three top-level packages.
Add these declarations at the top of any Java source file that uses the API:

```java
// Core API: Document, Page, Annotation, Form, etc.
import org.aspose.pdf.*;
// Annotation subclasses
import org.aspose.pdf.annotations.*;
// Facade classes: PdfFileEditor, PdfAnnotationEditor, etc.
import org.aspose.pdf.facades.*;
```

## Verifying the Installation

After adding the dependency, verify the library loads correctly by creating and saving
a minimal document. If the class resolves without error and `test.pdf` is created,
the installation is complete:

```java
try (Document doc = new Document()) {
    PageCollection pages = doc.getPages();
    Page page = pages.add();
    doc.save("test.pdf");
    System.out.println("Installed successfully. Pages: " + pages.getCount());
}
```

## Source Repository

The source code and issue tracker are available at
`https://github.com/aspose-pdf-foss/Aspose.PDF-FOSS-for-Java`.

## See Also

- [Aspose.PDF for Java — Enterprise Documentation](https://docs.aspose.com/pdf/java/)