Hello, I’m considering to buy your product. So i tried the aspose word trial version and i need to specify that it is jdk17 on the depedencies or else i can’t call the aspose function at all
example :
com.aspose
aspose-words
20.1
jdk17
but the problem is, does it has to be jdk17 ? because im using jdk18 right now.
@kevwijaya,
Yes, it will work with jdk18. Aspose.Words for Java 20.2 (latest version) supports the following Java versions:
- J2SE 6.0 (1.6)
- J2SE 7.0 (1.7)
- J2SE 8.0 (1.8)
- or above (for example Java 10)
You can try downloading from Maven. You can easily use Aspose.Words for Java directly from a Maven based project by adding following configurations to the pom.xml.
<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>https://repository.aspose.com/repo/</url>
</repository>
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-words</artifactId>
<version>20.2</version>
<type>pom</type>
</dependency>
im using gradle, if i put this
com.aspose
aspose-words
20.2
pom
on my build.gradle the library willl installed but i can’t call the function.
@kevwijaya,
Please try the following in your POM.XML:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.aspose</groupId>
<artifactId>AsposeWordsMavenTest</artifactId>
<version>1.0-SNAPSHOT</version>
<repositories>
<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>https://repository.aspose.com/repo/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-words</artifactId>
<version>20.2</version>
<classifier>jdk17</classifier>
</dependency>
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-words</artifactId>
<version>20.2</version>
<classifier>javadoc</classifier>
</dependency>
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-words</artifactId>
<version>20.2</version>
<classifier>shaping-harfbuzz-plugin</classifier>
</dependency>
</dependencies>
</project>
Hope, this helps.