how to create a license for my java project?
<p>I developed a java project. I want to create a license key for my project. 
for example if 12345 is the license key, then when a user enters that license key then the software should activate and should be ready to use. 
but the problem is that the license key should be limited. If the key is entered and activated in one PC then it should not be able to use in any of the other PC's. 
if the license key is activated, then it should expire and should not be able to activate again in any other pc. 
I thought a solution for this by updating the database at server side for each and every activation key. but i need to make this without using internet. 
As some of the antivirus softwares use license keys without using internet connection. so i want make this type of license keys. anyone who explain about this with a clear example and a java code may help me a lot. sorry If there are any gramatical mistakes in my english.</p>
