title: Execute a java program on login
body: <p>I need to write a program which executes </p>
  
  <p>whenever some one logged In to the windows system.</p>
  
  <p>It is for daily report generation purpose. </p>
  
  <p>I have written the program but couldn't get how to execute it on user login.</p>
  
  <p>All the help would really be appreciated. </p>
  
  <p><strong>EDIT</strong> most of the people suggesting that I should put file in startup folder, but startup files only execute if 'system started/restarted'... I need to run the program whenever a user login like if the computer is started but locked and then someone unlocks, this program should be executed.</p>
  
  <p>Correct me if I am wrong.</p>