I have created a simple program to display some texts, but when I tried to compaile it on jGRASP the it showing the following errors.
Exception in thread "main" java.lang.NoClassDefFoundError: program1 (wrong name: Program1)
at Java.lang.ClassLoder.defineClass1(Native Method)
and
at java.security.AccessController.doPriviledged(Native Method)
Here is the Program1
/**WRITE COMMENT HERE*/
class Program1
{
public static void main(String [] args)
{
System.out.println("Name:\n\tSalwan Yousif\n");
System.out.println("Major:\n\tHomeland Security\n");
System.out.println("Reason for taking course:\n\tIt's required for my major\n");
System.out.println("Pase of course:\n\tJust a bit too fast\n");
System.out.println("General feedback:\n\tI'll do my best to pass this class\n");
}
}
Program1is valid but1Programis not.