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.
- Change publicKey variable with your public key in ProductLicense.java file.
- Replace product id, edition and version with your settings in ProductLicense.java file
- To use your own Auto License Generation and Activation Server or License Activation and Validation Server define your server address in ProductLicense.java file.
Example Licenses
Example license files are located at "example-licenses" folder.
- 1472644876248.l4j: License text without activation.
- 1472644930579.l4j: License text with activation and return type activation code.
- 1472644941021.l4j: License text with activation and return type license text.
Following are some basic and secure license keys with different features.
- NSEZ9-FIDBV-2FN6Y-QJQPF-4PWGD: key without activation.
- XKMS7-9DL2J-5YULB-6WM3K-24BNE: key with activation and return type activation code.
- KWMXL-WZCJ2-WLVHW-VIT3I-LKJ39: key with activation and return type license text.
- D3CQ4-DR3NH-GSSBI-5DN5B-HZ2AW-PAQWA-A9BEG-N3QDM-Z6MDE-KVR49-FEQFQ: key without activation.
- 9HLQU-DYAW6-GJLZF-MFKZV-7VPAT-S4QD9-ACBEW-MVACF-PZAF4-2VAF5-7IGJQ: key with activation and return type activation code.
- A77QT-DSFNS-GBXA9-KFXP6-ABNAQ-4WQCA-A9KEN-5Q6U7-MDDEE-UQ6LJ-LTJ6A: key with activation and return type license text.
Following are online license keys with different features.
- VX2C6-D65HI-ILWYW-G52ZR-VS5AU: online key without usage limit.
- 95TQG-7V73I-XG6XN-YGSHQ-4UQLB: online key with usage count limit of 999999.
- IAPWH-MPMMJ-5645L-TLLV9-K3ZID: online key with usage time limit of 999999.