@ Akhilesh
yes .class file exist here.
@ sourabh.
Sir i show you the whole scenario.
there are two option showing in environment variable window
1.user variable and
2.System variable
i have add variable name->path
and variable value ->(C:\Program Files\Java\jdk1.5.0_10\bin)
now
As i my folder(dir) is named as Java_prog in D: drive.
i note down java code:
class Hello
{
public static void main(String arg[])
{
System.out.println("Hello");
}
}
and file name is Hello.java saved in Java_prog in D:
now in cmd i have given command viz
D:\Java_prog>javac Hello.java
( successfully compiled)
D:\Java_prog> java Hello
Exception in thread "main" java.lang.NoClassDefFoundError: Hello
...............
now as you advised i did like this
D:\Java_prog>set path=C:\Program Files\Java\jdk1.5.0_10\bin
D:\Java_prog> java hello
Exception in thread "main" java.lang.NoClassDefFoundError: Hello
it is showing the same problem.
.....................
Thanks a Ton in advance.