License4J Licensing Example Application

This application demonstrates validation of all license types. It stores license information in user home directory with file name ""sample-app.conf". "License" menu item in Help menu has required buttons to install, validate, activate, modify and deactivate a test license. Normally, a software product has a single licensing method, so a single license validation method should be sufficient. License details menu item in Help menu is to display some details about the installed license. Normally, customers do not need that much information.

"ProductLicense.java" has all settings and validation methods defined. It is used to make this demonstration application simple. In a real application, you should validate licenses in a few different parts of your application; and as in "ProductLicense.java" file it is better to perform validation, activation, modification, and deactivation in a thread to provide a more user friendly GUI. This sample application has simple SwingWorker methods to make it simple.

TODO List

To test your licenses with this application search for word TODO in source file "ProductLicense.java" and replace with your product information.

Example Licenses

Example license files are located at "example-licenses" folder.
Following are some basic and secure license keys with different features.
Following are online license keys with different features.