Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.HTML for Java is available from the official Aspose repository. Maven or Gradle is recommended for most Java projects because the build tool records the dependency, resolves it during the build, and makes later updates straightforward. You can also download the release package and add the required JAR manually in restricted or offline environments.
For most projects, add https://releases.aspose.com/java/repo/ as a package repository and use the com.aspose:aspose-html dependency. Replace ASPOSE_HTML_VERSION in the examples with an exact version listed on the
Aspose.HTML for Java Releases page.
Add the Aspose repository and Aspose.HTML dependency to your Maven pom.xml:
pom.xml file in your Java project.<repositories> section.com.aspose:aspose-html to the <dependencies> section. 1<repositories>
2 <repository>
3 <id>AsposeJavaAPI</id>
4 <url>https://releases.aspose.com/java/repo/</url>
5 </repository>
6</repositories>
7
8<dependencies>
9 <dependency>
10 <groupId>com.aspose</groupId>
11 <artifactId>aspose-html</artifactId>
12 <version>ASPOSE_HTML_VERSION</version>
13 </dependency>
14</dependencies>Run the following command from the project directory to resolve dependencies and compile the project:
1mvn compileAdd the repository and dependency to the Groovy DSL build.gradle file. The following configuration assumes that the Gradle Java plugin is already applied in the project:
build.gradle in your Java project.repositories.implementation dependency configuration.1repositories {
2 maven {
3 url = uri('https://releases.aspose.com/java/repo/')
4 }
5}
6
7dependencies {
8 implementation 'com.aspose:aspose-html:ASPOSE_HTML_VERSION'
9}For the Kotlin DSL build.gradle.kts file, use:
1repositories {
2 maven {
3 url = uri("https://releases.aspose.com/java/repo/")
4 }
5}
6
7dependencies {
8 implementation("com.aspose:aspose-html:ASPOSE_HTML_VERSION")
9}Run the following command from the project directory to resolve dependencies and build the project:
1gradle buildUse manual installation when Maven or Gradle cannot access an external repository:
Manual JAR references are not updated automatically. When upgrading, replace the old artifact and verify that the project no longer references the previous version.
To update a Maven or Gradle project, change the version in pom.xml or build.gradle to a version listed on the official releases page, then reload dependencies and rebuild the project. Review the
release notes before upgrading an existing application.
| Issue | Likely cause | Fix |
|---|---|---|
Maven or Gradle cannot resolve com.aspose:aspose-html | The repository is missing or unavailable, or the requested version is not published. | Configure https://releases.aspose.com/java/repo/, select an exact version from
Aspose.HTML for Java Releases, and reload dependencies. |
| Aspose.HTML packages are unresolved in the IDE | The project model has not been reloaded, dependency resolution failed, or the dependency was added to another module. | Reload the Maven or Gradle project, inspect the dependency tree, and verify the correct module configuration. |
| An old Aspose.HTML version remains after an update | The build file still pins the old version or the dependency cache has not been refreshed. | Check all project modules, update the version, refresh dependencies, and rebuild the project. |
After installation, continue with How to Run the Examples or follow the first HTML to PDF workflow in Getting Started. Installation does not remove evaluation limitations; see Licensing when you are ready to apply a temporary or purchased license.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.