Hi everyone!!!!!
Today i upload this video to show you how to run java programs, using command prompt .....N i hope it helps definitely 4 java beginners... Thank U :))
1. Start cmd. You will get something like this in the last line:
C:\Users\Anbu>
2. If your project is not in C drive, type cd\. Then press Enter. You will get something like this in the last line: C:\>
3. If your project is in D drive, type d:. Then press Enter. You will get something like this in the last line: D:\>
4. It the path is not set, then go to My Computer-->C drive-->Program Files-->Java-->Select jdk--> bin. After opening bin, copy the address from the address bar. Then type path in cmd and paste the address that you copied. You will get something like this in the last line: D:\>path C:\Program Files\Java\jdk1.6.0_20\bin. Then press Enter. Go to step 6.
5. If the path is already set, go to step 6.
6. Type javac Projectname.java. If there are no errors, type java Name_of_main_class.
No comments:
Post a Comment