title: No Class Def Found error
body: <p>I wrote the following class in NetBeans and ran it successfully. But when I uploaded it to the IEEE moshack server where I participated for the IEEE Extreme competition. </p>
  
  <p>It says that my program gives a run-time error. Can you please tell me why?</p>
  
  <pre><code>import java.util.Scanner;
  
  
  public class BloomFilter {
  
      public static void main(String[] args) {
  
  
          Scanner sc = new Scanner(System.in);
  
          int[] a = new int[26];
          for (int b : a) {
              b = 0;
          }
  
  
          String s = sc.nextLine();
         String s1 = sc.nextLine();
  
  
          for (int i = 0; i &lt; s.length(); i++) {
              if (s.charAt(i) &gt;= 65 &amp;&amp; s.charAt(i) &lt;= 90) {
  
                  int p = s.charAt(i) - 65;
  
                  a[p] = 1;
  
              }
  
              if ((s.charAt(i) &gt;= 97 &amp;&amp; s.charAt(i) &lt;= 122)) {
  
                  int p = s.charAt(i) - 97;
  
                  a[p] = 1;
              }
          }
  
          String[] tokens = s1.split("[^a-zA-Z]");
          int totWords = 0;
  
          for (String s2 : tokens) {
              s2.toLowerCase();
              totWords++;
              for (int j = 0; j &lt; s2.length(); j++) {
                  if (a[s2.charAt(j) - 97] == 0) {
                      totWords--;
                      break;
                  }
              }
  
          }
  
          System.out.print(totWords);
  
  
      }
  }
  </code></pre>