Improving diagnostics for NoClassDefFoundError: could not initialize jenkins.model.Jenkins

Reference: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8051847
Reference: ZD-23093