Licence renewal question

Hello,

I have a question regarding our recently renewed Aspose Total for Java license.
We’ve received the new license file, and I’d like to clarify:

Do I need to replace the current license file on the exact expiration date of the old one, or is the new license already valid and can be applied immediately?

Thank you in advance for your support.

Best regards,
Klára Bajer

@KlaraBajer

Hello Klára,

You can apply your newly renewed Aspose Total for Java license immediately after receiving it. There is no need to wait until the expiration date of your old license. You can replace the current license file with the new one at your convenience.

To apply the new license, simply use the setLicense method in your code, pointing to the new license file. Here’s a quick example of how to do this:

License license = new License();
license.setLicense("path/to/your/new/license/file.lic");

Make sure to replace "path/to/your/new/license/file.lic" with the actual path to your new license file.

If you have any further questions or need assistance, feel free to ask!

Best regards.

@KlaraBajer,

Please note, when you purchase an Aspose license, it typically includes a one-year subscription. This subscription allows you to use the license for a full year and receive updates and fixes/new versions during that period. Aspose licenses are perpetual, meaning you can continue using the library versions released up to your subscription expiry date indefinitely. However, after the subscription expires, you will no longer get new updates, fixes or use new versions and must use the library versions available up to that date. In short, if you do not change/update the Aspose APIs or library versions in your application, your existing license will remain valid and continue to function without any issues.

Hope, this helps a bit.

Hello,

thanks a lot, that helped me.

We have a new problem while trying to load the new licence.
We get this message: Failed to set license. Details: Bad signature length: got 256 but was expecting 128.

This is how we load the licence:
byte[] decryptedLicense = resourceLoader.getResource(“classpath:Aspose.Total.Java.lic”).getContentAsByteArray();

Can you advise what can we do in this case?

Thank you.

@KlaraBajer,

Are you using the new license with older version, which version of which Aspose API/library?

Hello,

thank you for your response.

We use it with the new version.
See the attachment - >
image.png (4.4 KB)

BR,
Klára Bajer

We have noticed there are even newer versions now, but there is a problem in for example the barcode-module. The version 25.5 has no JDK17 facet anymore. We can’t use it.

@KlaraBajer,

Thanks for providing further details and screenshot.

Please note, the newer versions of Aspose.BarCode for Java supports JDK/JRE 1.8 and above versions. There is no jdk17 classifier for newer versions, you may either set it as jdk18 or don’t set it. You can easily integrate the product into your Gradle projects by adding the following configurations to pom.xml.

<repositories>
   <repository>
     <id>aspose-barcode-java</id>
     <name>Aspose Barcode Java</name>
     <url>https://releases.aspose.com/java/repo/</url>
  </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>com.aspose</groupId>
        <artifactId>aspose-barcode</artifactId>
        <version>25.5</version>
    </dependency>
</dependencies>

or

<dependencies>
    <dependency>
        <groupId>com.aspose</groupId>
        <artifactId>aspose-barcode</artifactId>
        <version>25.1</version>
        <classifier>jdk18</classifier>
    </dependency>
</dependencies>

and for JavaDoc:

    <dependency>
        <groupId>com.aspose</groupId>
        <artifactId>aspose-barcode</artifactId>
        <version>25.5</version>
        <classifier>javadoc</classifier>
        <scope>provided</scope>
    </dependency>

For Gradle-based applications, you should use the following settings:

repositories {
    maven {
        url "https://releases.aspose.com/java/repo/"
    }
}
dependencies {
    implementation group: 'com.aspose', name: 'aspose-barcode', version: '25.5'
    // Or
    implementation("com.aspose:aspose-barcode:25.5")
    // Alternative version with JDK 18 classifier
    implementation group: 'com.aspose', name: 'aspose-barcode', classifier: 'jdk18', version: '25.5'    
    // JavaDoc dependency
    implementation group: 'com.aspose', name: 'aspose-barcode', classifier: 'javadoc', version: '25.5'
}

Hope, this helps a bit.

Moreover, see the document for your reference.
https://docs.aspose.com/barcode/java/installation/