I have installed the JDK version 1.6 now the code is compiled but throws a run-time error

```
class Console1
{
    public static void main(String args[])
    {
        System.console().readLine("this is how we give he input to the string");
        System.out.println("this is what we want to print:0)");
    }
}

```

Output
------

```
exception in thread "main" java.lang.NoClassDefFoundError: Console

```