Regrading NoClassDefFoundError

I set classpath and command promt and Env.var...

my program is at d:\java\bin

When i compile my prog using javac it is compiling ..but when i run my prog my prog using java it is not running and creating the prob is

Exception in thread "main" java.lang.NoClassDefFoundError

My code is

class temp

{

public static void main(String args[])

{

System.out.println("hi");

}

}

Pls can anybody help me..i fed with this prob and changing this and that but in vain...

[545 byte] By [priyapa] at [2007-10-3 8:00:09]
# 1
try java -classpath ./ temp
slenzia at 2007-7-15 3:03:23 > top of Java-index,Security,Signed Applets...