Error: Could not find or load main class FirstProgram

When running the following code I get the error Error: Could not find or load main class FirstProgram

I am a newbie programmer and I was wondering if anyone could please help me and tell what is wrong with this code?

public class FirstProgram {

    public static void main(String[] args) { 
        String text = "in the name of god";
        System.out.println(text);
    }
}


Source: eclipse

Leave a Reply