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

Coderanch | Campbell Ritchie | 10 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded 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