0

how to compile java program in command prompt

11th Oct 2016, 8:35 AM
md Zain
md Zain - avatar
4 Antworten
+ 1
javac filename.java to compile the program & then java filename to execute the program!
11th Oct 2016, 8:39 AM
Sagar Sureliya
Sagar Sureliya - avatar
0
write javac program name with .java extension and then press enter
11th Oct 2016, 8:39 AM
Neha
0
go with this app
11th Oct 2016, 5:12 PM
Ravi
0
Solved it : using your command prompt navigate to the directory where your program is , if for instance your program is named Demo.java , type javac Demo.java then hit enter. watch as your program compiles .
20th Oct 2017, 2:40 PM
Edward Mwaura
Edward Mwaura - avatar