Please post this in the beginners corner. Are you using a jdk or a jre? What do you get when you type java -version at the command prompt?
Thanks for the response. As per your suggestion I have posted this query on the beginners forum.
Reply to your specific question about using jvm/sdk. I am using 1.4.2 SDK and my path is set to the bin directory.
The output of java version is
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)