what are other reason for this type of error.
and also tell what is difference between j2sdk and jdk installation
the last syntax is effective when when ur r not able to set environment
switch to the directory wher the progranm lies (rather the class file u compiled to lies ) and try running it again.
alternately u can switch to