Compilation Error

I am using jdk 1.5.0_07

When i compile any program (for e.g. the simple one below), the bytecode is generated without error, but when i try to run the program, i get the error:-

Exception in thread "main" java.lang.NoClassDefFoundError: first/java

Please help.

Prewittz.

class sample

{

public static void main(String args[ ])

{

System.out.println("Java is better than C++.");

}

}

[452 byte] By [prewittza] at [2007-10-3 4:28:18]
# 1
You should not specify .java extension while calling java.Just "java sample"
Michael.Nazarov@sun.coma at 2007-7-14 22:31:15 > top of Java-index,Java Essentials,New To Java...