I am working on this simple code from a book I am getting an error See image below.
// Read a Character from the Keyboard
class KbIn {
public static void main(String args[])
throws java.io.IoException{
char ch;
System.out.print("Press a key followed by ENTER: ");
ch = (char) System.in.read(); // get char
System.out.println("Your key is: " + ch);
}
}
It is giving the error of (Error: A JNI error has occurred, please check installation and try again)
I am using:
Eclipse IDE for Developers
Version: Oxygen.3a Release 4.7.3a
Thanks