title: Can't run or import JARs with Java 10 and Java 11
body: <p>I am unable to run <code>.jar</code> archives using Java 10 or Java 11 (they exit with <code>NoClassDefFoundError</code>). Likewise, I am also unable to import <code>.jar</code> archives into a Java Project; they appear in the Classpath, but Eclipse says that the import cannot be resolved. When I downgraded to Java 8, I was able to run <code>.jar</code> archives just fine and they would also be recognized in any Java Project that imported them. </p>
  
  <p>For example:</p>
  
  <p>I am importing <code>mongo-java-driver-3.8.2</code> into a Java Project on Eclipse Photon. I add the <code>.jar</code> to the Project's Classpath (Project -> Properties -> Java Build Path). However, Eclipse outputs <code>The import com.mongodb cannot be resolved</code>, as seen in the picture below:</p>
  
  <p><a href="https://i.stack.imgur.com/Vbraf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Vbraf.png" alt="enter image description here"></a></p>