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
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
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
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 !..