I'm coding a software on java and i almost finished, i would like to know how can we create a trial version which work for example for 30 days, because i will to send it to some companies
so how to make it like shareware or trialware, also can we block access to the .class in the jar file?
Thank you
Here is an idea:
Create a database (such as a SQL Server database) that is publicly available on the web. It will keep a list of "trial version" license keys. You can use the same system for full-version license keys when your product is purchased.
When your Java software is first run, it'll cause a trial license to be created which will be stored in the database
The Java software checks for a valid license each time it is run. The date that the license was created is stored in the database so it doesn't matter what the client clocks are set at.
The software stops functioning when the license is expired
Standard windows software can look up the CPU ID and use that as part of the license, so that each computer can only run the trial software once. Does anyone know if there is a "JVM ID" of some kind that can be used for this purpose?
Maybe there is free or open-source license-related code out there already?