0

Hie guys, i can you help me to with ways to create the file in notepad for my program to run on the command window

24th Sep 2016, 8:11 AM
Daisymond
Daisymond - avatar
3 odpowiedzi
0
In windows create and save the file name as the class name in cmd type javac ur_file.java then to run java ur.file.class
24th Sep 2016, 9:31 AM
மனோஜ்குமார் பழனிச்சாமி
மனோஜ்குமார் பழனிச்சாமி - avatar
0
the code which you hv written in notepad save it with .java extension . class Name and the file name should be same as.. class program { psvm () } save it as: program.java now go to cmd and type: D: // as per your file location cd folder_Name set path="copy paste jdk url" javac program.java java program
25th Sep 2016, 4:46 AM
preet
preet - avatar
0
write java program in note pad ....save that file in the name of class name ....remember class name should b of main type only ....n it must start from caps only!......eg:- if ur class name is Sample ...then save it as "Sample.java" in desired drive n compile it in cmd prompt after setting path .....as javac Sample.java ...if no errors r found .....run the program ..java Sample !..
25th Sep 2016, 7:26 AM
pooja joshi
pooja joshi - avatar