Instrument The instrumentation class is magic and doesn't have a constructor. To obtain an instance, you must use the magic Premain-Class mechanism. http://stackoverflow.com/questions/27851588/what-is-premain-and-how-does-it-get-called/43296164#43296164