title: CompilerOptions: NoSuchMethodError: com.google.common.base.Preconditions.checkArgument
body: <p>Anybody got any Idea why this error appears?</p>
  
  <pre><code>Exception in thread "main" java.lang.NoSuchMethodError:     com.google.common.base.Preconditions.checkArgument(Z)V
      at com.google.common.collect.Lists.computeArrayListCapacity(Lists.java:105)
      at com.google.common.collect.Lists.newArrayList(Lists.java:98)
      at com.google.javascript.jscomp.ComposeWarningsGuard.&lt;init&gt;    (ComposeWarningsGuard.java:83)
      at com.google.javascript.jscomp.CompilerOptions.&lt;init&gt;(CompilerOptions.java:791)
  </code></pre>
  
  <p>Code</p>
  
  <pre><code>import java.io.File;
  import java.util.Arrays;
  import java.util.Collections;
  import java.util.List;
  import java.util.logging.Level;
  
  import com.google.javascript.jscomp.CompilationLevel;
  import com.google.javascript.jscomp.CompilerOptions;
  import com.google.javascript.jscomp.Compiler;
  import com.google.javascript.jscomp.SourceFile;
  
  public class MyJavaScriptCompressor {
  
      private Compiler cloJsCompressor;
  
      public MyJavaScriptCompressor() {
      }
  
      public String closureCompress(File source) {
          CompilerOptions opt = new CompilerOptions();
          int mode = 1;
          CompilationLevel.SIMPLE_OPTIMIZATIONS.setOptionsForCompilationLevel( opt );
  
          Compiler.setLoggingLevel(Level.OFF);
          cloJsCompressor = new Compiler();
          cloJsCompressor.disableThreads();
  
          List&lt;SourceFile&gt; externs = Collections.emptyList();
          List&lt;SourceFile&gt; inputs = Arrays.asList(SourceFile.fromFile(source));
  
          cloJsCompressor.compile( externs, inputs, opt );
  
          return cloJsCompressor.toSource();
      }
  }
  </code></pre>
  
  <p>build path includes</p>
  
  <pre><code>compiler.jar
  jsoup.jar
  yuicompressor.jar
  </code></pre>
  
  <p>how can i get rid of it?!</p>
  
  <hr>
  
  <p>edit:</p>
  
  <p>the error appears in this line:</p>
  
  <pre><code>CompilerOptions opt = new CompilerOptions();
  </code></pre>