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?

Re: new to java, IDE wont run any java programs. 80 80

Solved. I'm an idiot.

Re: new to java, IDE wont run any java programs. 80 80

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 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.