Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Basics Getting Started with Java Introduction to Your Tools

Import java.io.Console & Netbeans

Hello!!

Iยดm getting this error when I use console.printf or console.readline... What am I doing wrong?

ERROR: "run: Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous tree type: <any> at javaapplication3.JavaApplication3.main(JavaApplication3.java:12) C:\Users\HECTOR\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1 BUILD FAILED (total time: 2 seconds)"

PLEASE HELP!

package javaapplication3;

import java.io.Console;

public class JavaApplication3 {

    public static void main(String[] args) {

        Console console = System.console();

        console.readLine('hey');

    }

}

1 Answer

Here's a post you may find interesting: https://teamtreehouse.com/community/java-ide-question