0

I am working with java application programs,especially billing software.

I want to gave my application program as demo version for customers. So I want to set my program for a limited period of time(30 days Trial), and after that It should ask for a valid key for continuing.

How is it possible to Set a 30 days time period for my application in Java.

Any Idea is acceptable

Thanks in advance..

  • If everyone choose Google,Then whats the use of STACK OVERFLOOOOOOO –  Aug 20 '15 at 19:11
  • It's for after you've actually made an effort to research and attempt the problem yourself first. – tnw Aug 20 '15 at 19:37
  • As a counter point to @tnw's view, most of the top google results are stack overflow - and most of them have similar complaints of "google it first next time". – Sh4d0wsPlyr Aug 20 '15 at 19:45
  • Ehm... what? The question I linked has none of that and 10 different answers to choose from. – tnw Aug 20 '15 at 19:47
  • Actually StackOverflow.com was [founded with the intention](http://www.joelonsoftware.com/items/2008/09/15.html) of being amongst the top hits in a Google search. Showing effort is not the issue, rather the question must be specific, "Every question in Stack Overflow is like the Wikipedia article for some extremely narrow, specific programming question. How do I enlarge a fizzbar without overwriting the user’s snibbit? This question should only appear once in the site. Duplicates should be cleaned up quickly and redirected to the original question." – Basil Bourque Aug 20 '15 at 21:43
  • @Basil "Actually StackOverflow.com was founded with the intention of being amongst the top hits in a Google search." That's what stackoverflow need....But we thought that, some good people were here for understanding the problems of unskilled people and trying to sort it out.And it was our mistake. –  Aug 21 '15 at 01:42
  • And if something like that, tell me a website for helping students like me.I don't want this account.. –  Aug 21 '15 at 01:45

2 Answers2

1

First, see the linked article about how to get and manipulate the date. This will be very useful in the future.

How to get the current date/time in Java

Second, you will only have to do some simple comparisons to clarify what the current date is, versus the fixed limit for the license. Depending on how you are distributing this, you will want to implement the licenses in different ways. For instance, include a fixed start date (such as the day you distribute) and have the expiration be one month later. Your other option is to dynamically update a license key that specifies the current date, every day. This way when you send it out later you will be covered from the day you sent it out - as opposed to from a fixed date.

Community
  • 1
  • 1
Sh4d0wsPlyr
  • 948
  • 12
  • 28
  • Thanks for this Idea –  Aug 20 '15 at 19:05
  • I only wants to know How the developers make trial software..You told me that to set a date for its initial use,and check for the destination day,Right bro –  Aug 20 '15 at 19:08
0

Take a look at TrueLicense, because just verification of the trial time and license key sometimes is not enough and it raises a few more complicated problems.

Stanislav
  • 27,441
  • 9
  • 87
  • 82
  • Oh god..Thanks for this Link,,I want to create something by myself.Is there any different Idea frnd.. –  Aug 20 '15 at 19:16