1-save file as HelloWorld.java (Like the Class name)
2-open CMD [start>>run>>print CMD>>enter ]
3-Now after open Print : cd C:\Program Files\Java\jdk1.5.0\bin\
4-now you can compile the program with print : javac "C:\DocumentsandSettings\ahmed\MyDocuments\ahmed.java\HelloWorld\HelloWorld.java" < where you save >
5-print : cd C:\Documents and Settings\ahmed\My Documents\ahmed.java\HelloWorld\
6-now you can run the prog print : java HelloWorld
-----------------------------------
**** the path could be not the same in your P.C so find it and edit my doc.
I try it and it is work
No comments:
Post a Comment