Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Code won't complie

  1. #1
    Junior Member
    Join Date
    Aug 2019
    Location
    Atlanta, Ga
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Code won't complie

    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

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Code won't complie

    please check installation and try again)
    There may be something wrong with the IDE. Try uninstalling and reinstalling it.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Aug 2019
    Location
    Atlanta, Ga
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Code won't complie

    Okay, thanks!

Similar Threads

  1. Replies: 3
    Last Post: April 27th, 2013, 07:19 AM
  2. Replies: 4
    Last Post: January 24th, 2013, 11:20 AM
  3. Replies: 7
    Last Post: January 24th, 2013, 10:41 AM
  4. Replies: 5
    Last Post: November 14th, 2012, 10:47 AM
  5. Replies: 3
    Last Post: September 3rd, 2012, 11:36 AM