java.lang.NoSuchMethodError: java.lang.System.console ()Ljava/io/Console;

Coderanch | Campbell Ritchie | 10 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Compile on Java 6 for Java 5

    Coderanch | 10 years ago | Campbell Ritchie
    java.lang.NoSuchMethodError: java.lang.System.console ()Ljava/io/Console;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      java.lang.System.console ()Ljava/io/Console;

      at trivia.J5CrashTest.printConsole()
    2. trivia
      J5CrashTest.main
      1. trivia.J5CrashTest.printConsole(J5CrashTest.java:15)
      2. trivia.J5CrashTest.main(J5CrashTest.java:10)
      2 frames