Program wont run due to exception in thread main
I am trying to run the below program and it wont work.
It compiled with no problem: javac Myfirst.java
Here is my attempt and error:
C:\Program Files\Java\jdk1.5.0_06\bin>java Myfirst
Exception in thread "main" java.lang.NoClassDefFoundError: Myfirst
The source code:
publicclass Myfirst
{
publicstaticvoid main(String[] args)
{
System.out.println("hi");
}
}
Message was edited by:
oaklandar

