how do access the .java file in command prompt? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how do access the .java file in command prompt?

17th Jan 2017, 9:43 PM
azize mohammed
azize mohammed - avatar
2 Answers
+ 1
1. shift+right click on the folder containing file.java 2.click 'open command window here' 3.to compile type javac file.java 4.to run type java file make sure tat class name and file name are same
21st Jan 2017, 3:00 PM
Hasib
Hasib - avatar
0
thanks ..however it says file not found...how do i get command prompt to find it through its directory?
17th Jan 2017, 11:33 PM
azize mohammed
azize mohammed - avatar