when ever i compile any program on my system it compiles sucessfuly but when i run any program it gives error i don't know what to do the error message is as follows:
C:\jdk1.2\bin>javac example.java
C:\jdk1.2\bin>
java example
Exception in
thread "main" java.lang.NoClassDefFoundError: example
the example.java is as follows:
class example
{
public static void main(
String args[])
{
System.out.println("This is my first java program.");
}
}