# Aspose.Slides for Java

Use these instructions for this platform only. Read the project's existing instructions and dependency files first. Keep its current package version unless the task requires a change. Confirm API names against this platform's documentation; bindings are not interchangeable.

## Setup

Use `com.aspose:aspose-slides` from [Aspose's Maven repository](https://releases.aspose.com/java/repo/) with the documented `jdk8` classifier. Match the project's JDK and dependency version. Import types from `com.aspose.slides`. Dispose each `Presentation` in a `finally` block. Check fonts on the machine that will render the slides.

## Minimal example

After installation, run this as `Starter.java` in your configured project. It creates `hello.pptx` in the working directory. Use a scratch directory so an existing file is not replaced.

```java
import com.aspose.slides.Presentation;
import com.aspose.slides.SaveFormat;
import com.aspose.slides.ShapeType;

public class Starter {
    public static void main(String[] args) {
        Presentation presentation = new Presentation();
        try {
            presentation.getSlides().get_Item(0).getShapes()
                .addAutoShape(ShapeType.Rectangle, 50, 50, 500, 80)
                .getTextFrame().setText("Hello, Aspose.Slides!");
            presentation.save("hello.pptx", SaveFormat.Pptx);
        } finally {
            presentation.dispose();
        }
    }
}
```

Verified on 2026-11-18: Windows x64, JDK 21, Aspose.Slides for Java 26.10 (jdk8). The program ran and the saved file contained one slide with the expected text. This evaluation-mode check does not prove licensed output or other operating systems.

## License

Evaluation mode is suitable for a local smoke test and can add watermarks or other limits. If the user supplies a valid license, follow the [licensing guide](https://docs.aspose.com/slides/java/licensing/) before creating presentations. Read the license from a private local location accessible to the process. Never put license contents, keys, or personal paths in instructions, source control, or logs.

## Verify the change

Before expanding a change, create a small presentation, save it to a new file, and open the result. Check the requested content, slide count, and formatting. Build and run the exact code against the installed package; report any missing runtime or dependency instead of claiming it was tested.

Keep input files local unless the user permits sharing them. Write output to a new file and preserve the original. Report what ran, the versions used, and any checks that remain.

## Sources

- [Documentation](https://docs.aspose.com/slides/java/)
- [API reference](https://reference.aspose.com/slides/java/)
- [Installation](https://docs.aspose.com/slides/java/installation/)
- [Licensing](https://docs.aspose.com/slides/java/licensing/)
