Hi.
I'm a totally beginner in java and was wondering if someone could help me out
I have made an easy java file, but can't run it from cmd - windows.
Can someone tell me why I'm not able to run the file?
My commands with error message:
C:\Program Files\Java\jdk-17.0.2\bin>set path=C:\Program Files\Java\jdk-17.0_2\bin
C:\Program Files\Java\jdk-17.0.2\bin>cd\
C:\>dir
Volume in drive C has no label.
Volume Serial Number is 7048-6868
Directory of C:\
02/09/2019 11:11 AM <DIR> DRIVERS
01/29/2022 10:37 AM 196 FirstJavaProgam.java
10/06/2020 08:43 AM <DIR> Intel
12/07/2019 10:14 AM <DIR> PerfLogs
01/29/2022 10:44 AM <DIR> Program Files
10/15/2021 10:58 AM <DIR> Program Files (x86)
10/06/2020 08:44 AM <DIR> Users
01/28/2022 06:37 PM <DIR> Windows
1 File(s) 196 bytes
7 Dir(s) 73,367,609,344 bytes free
C:\>java FirstJavaProgam
'java' is not recognized as an internal or external command,
operable program or batch file.
My code looks like this:
public class FirtsJavaProgram {
public static void main(String[] args){
system.out.println("This is my first program in java");
}//End of main
}//End of first JavaProgram Class
Thanks!
--- Update ---
by the way, this is the website I followed when trying to make my first java code:
https://beginnersbook.com/2013/05/first-java-program/