title: Spark SQL fails with java.lang.NoClassDefFoundError: org/codehaus/commons/compiler/UncheckedCompileException
body: <p>Running a Spark SQL (v2.1.0_2.11) program in Java immediately fails with the following exception, as soon as the first action is called on a dataframe:</p>
  
  <pre><code>java.lang.ClassNotFoundException: org.codehaus.commons.compiler.UncheckedCompileException
  </code></pre>
  
  <p>I ran it in Eclipse, outside of the <code>spark-submit</code> environment. I use the following Spark SQL Maven dependency:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
      &lt;artifactId&gt;spark-sql_2.11&lt;/artifactId&gt;
      &lt;version&gt;2.1.0&lt;/version&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>