+ 1

Help

Hi, if i want to run a Java program, and im in the cmd, how do i find that what i wrote in Notepadd++? I cant find it. I hope that someone can help me thanks:)

13th Jan 2017, 11:30 PM
Moritz
3 Answers
+ 2
just go to the directory where you saved your .java file maybe cd programs then you can use the javac command to compile it - javac filename.java
13th Jan 2017, 11:32 PM
Kawaii
Kawaii - avatar
+ 1
u need to know where u save ur file if u dont remember u can go to the Windows explorer and u can search the name of ur file there if u dont remember the name of the file well idk what u can do, command to change directory "cd"
27th Jan 2017, 6:59 PM
Kawaii
Kawaii - avatar
0
and how do i got the the directroy? So do I have to go to the directory in the cmd and if so how do i do that?
27th Jan 2017, 10:35 AM
Moritz