title: Call x function every month in java
body: <p>Each month I would like to run a certain task in Java. However, I don't have access to a cron system or anything outside of the Java environment on this machine.</p>
  
  <p>What would be the most effective way of implementing such system, or does one already exist that someone can provide me with the link to? A solution that I would of would be storing the current time in a file, and then like every day, comparing it to see if the difference is a month and if so then run and reset. But that isn't the most accurate method.</p>