title: How to solve "Unhandled exception type ClassNotFoundException" and "Vector is a raw type" errors?
body: <p>In servlet side, I am trying to receive an vector sent from the applet. The code is like</p>
  <pre><code>InputStream in = request.getInputStream();
  ObjectInputStream inputFromApplet = new ObjectInputStream(in);
  Vector v = (Vector) inputFromApplet.readObject();
  </code></pre>
  <p>But the compiler specifies that the following one is wrong.</p>
  <pre><code>Vector v = (Vector) inputFromApplet.readObject();
  </code></pre>
  <p>The error message is</p>
  <blockquote>
  <p>Multiple markers at this line</p>
  <ul>
  <li>Unhandled exception type ClassNotFoundException</li>
  <li>Vector is a raw type. References to generic type Vector
  should be parameterized</li>
  <li>Vector is a raw type. References to generic type Vector
  should be parameterized</li>
  </ul>
  </blockquote>
  <p>What's wrong with my code? Thanks.</p>