title: What is the minimal Java class file that works on every JVM?
body: <p>I want a sort of minimal "smoke test" for a series of JVMs, ranging from JDK 1 - 8, OpenJDK, IBM JDK, and even Microsoft JDKs if possible. Is there a way to make a minimal Java class file that should be able to test this?</p>
  
  <h1>Update</h1>
  
  <p>It should be possible to run:</p>
  
  <p>java -cp ClassName </p>
  
  <p>And have output that confirms that the JVM is running properly.</p>
  
  <p>Also, for those who think that JVMs are always functioning should know that I use systems which have up to 20 JVMs on one machine, and some of the JVMs can be corrupted. Also note that not all JVMs can run all .class files</p>