How to compile a java program ?

1.Open command prompt using Start-->Run---> type cmd

2.In command prompt type cd c:\ java ( or your java directory path name)

3.Now type javac Xyz.java ( replace Xyz with your file name)

4.If compiled successfully type java Xyz

5.Done.

Helpful articles :

Hello Word for Microsoft windows

Related Video :

No comments:

Post a Comment