How to monitor some jre events like start, close etc? Are there any libraries for this? I need to create a log to store the time that jre is thrown, closed and know who accessed it, all this should be inside a txt file on the local machine, is there any material I can use for reference or any specific library that does this?