Hi, ive only started to program in Java for the last couple of days. I picked up a disk containing JDK 1.3 from my uni so that I can compile programs at home.
I typed up this very simple program which is shown below
public class Hello
{
public static void main(String[] args)
{ System.out.print("Hello you");
}
}
When I tried compiling it I get this
C:\Documents and Settings\Owner>javac Hello.java
error: cannot read: Hello.java
1 error
C:\Documents and Settings\Owner>java Hello
Exception in thread "main" java.lang.NoClassDefFoundError: Hello
I dont know whether theres a problem with the program which i'm pretty sure is OK, the disk or even my PC. If anyone can explain to me what [I]'Exception in thread "main" java.lang.NoClassDefFoundError: Hello'[/I] means I will really appreciate it.
Thanks.
Mus.