i am writting a program that needs to remind me that registration day will expire in two months, then after that it will remind me again in two weeks and then in two days, please how do i go about it i know i have to use a scheduler and a thread with reference to the calender but can any one help me with hints on how to start please, thanks
Well, i dont knw abt Quartz, but let me put this in a traditional way:
You would need a thread that eternally executes and waits for an event to trigger. For an event that would occur after a few months, you obviously need your java program to keep executing at all times:
1. Assume the machine is on 24 hours for 2 months (this can happen if your target application is a Server. so, you an start a servlet with your application)
2. The machine is not always on (Well, you have to find a way to add your program to a machine startup eg startup folder in windows)
Of course windows has a scheduler that can execute programs at intervals. But are we making a platform dependent program ???