So I downloaded the latest version (version 1.8.0_371, I think) of Java on my Windows 10 computer. I tried running the javac command in cmd, but it kept saying:
'javac' is not recognized as an internal or external command,operable program or batch file.
Okay...I go online and search for methods to solve this. Apparently, my PATH variable might be incorrectly set. After changing the PATH, I tried again to no avail. I looked inside the bin folder (inside the Java folder), and turns out that the javac file doesn't even exist! No wonder nothing happened after I ran the javac command.
I've tried reinstalling Java, but every time I do so, I can't find the javac file inside bin. It's like it never gets downloaded each time! How so?
Just out of curiosity, is the javac file a .jar file?
Also, I'm a beginner at Java. Well, I know how to print lines, do for-loops, basic arithmetic, use variables and arrays. But I've never tried installing Java myself. I understand that after writing a .java file, I need to compile it into a .class file, then try to run it. I also understand that the javac is supposed to help you compile .class files, but now I encounter this problem. Great.
'javac' is not recognized as an internal or external command,operable program or batch file.
Okay...I go online and search for methods to solve this. Apparently, my PATH variable might be incorrectly set. After changing the PATH, I tried again to no avail. I looked inside the bin folder (inside the Java folder), and turns out that the javac file doesn't even exist! No wonder nothing happened after I ran the javac command.
I've tried reinstalling Java, but every time I do so, I can't find the javac file inside bin. It's like it never gets downloaded each time! How so?
Just out of curiosity, is the javac file a .jar file?
Also, I'm a beginner at Java. Well, I know how to print lines, do for-loops, basic arithmetic, use variables and arrays. But I've never tried installing Java myself. I understand that after writing a .java file, I need to compile it into a .class file, then try to run it. I also understand that the javac is supposed to help you compile .class files, but now I encounter this problem. Great.