K... I'm a java beginner and I took a few months off and now I seem to be
having a brain fart or something. The following is a simple class I created
because I was having trouble running a chat server class that was written
for school. I get the same error on both class when I try to run them.
Here is the error:
C:\>javac Test.java
C:\>java Test
Exception in thread "main" java.lang.NoClassDefFoundError: Test
C:\>
public class Test
{
public Test()
{
System.out.println("Test instantiated");
}
public void main(String args[])
{
System.out.println("hello");
//new Test();
}
}
I verified that the .class and .java files were present and in the correct
location .... C:\
so can anyone point out the small something that I am missing
here?????????????????????
--
Chris Mosser