Now, I have created a directory named Myproject inside bin. Myproject contains 2 directories Source and Classes. But the command prompt says javac not a valid command inside Source. What changes should I make in the Classpath.Please help.
As stated above, if you want to access java or javac from other than bin folder, the "bin" folder should be added in the "path" variable. So, before using javac for the first time, use the following command in your command prompt:
C:\Program Files\Java\jdk1.6.0_04\bin\Myproject\Source>javac <<your java program name>>
Please note, your project folder need not to be inside java installation folder under bin. You can have your project folder somewhere in any of your valid drives (for example c:\Myproject) to make it simple to access.