Using netbeans IDE 8.0, and have JDK 1.8. Created a project and file that does this.

public class Tutorial {

    public static void main(String[] args) {
        // TODO code application logic here
        system.out.println("Hello World!");
    }

}

and when running i get this error...

Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: system.out.println
    at tutorial.Tutorial.main(Tutorial.java:5)
Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)

doesnt work. Whats going on?

Solved. I'm an idiot.

No, no, not an idiot. We've all done that, or something like it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.