title: Java: Input strings with keyboard class
body: <p>I'm trying to input information in Java console application but I can't seem to run it.</p>
  
  <p>This is how my Java file looks like:</p>
  
  <hr>
  
  <pre><code>public class Ovning1_3 
  {
  
       public static void main(String args[])
       {
  
           String name;
           System.out.println("Enter your name");
           name = Keyboard.readString();
           System.out.println(name);      
      }
  
  }
  </code></pre>
  
  <hr>
  
  <p>But I get the error: </p>
  
  <pre><code>Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
  Keyboard cannot be resolved
  at Ovning1_3.main(Ovning1_3.java:9)
  </code></pre>
  
  <hr>
  
  <p>I have a keyboard.class file in my source folder.
  I'm using Eclipse with Ubuntu.</p>