Q & A of PATH environment variable in JAVA

Question: Open the DOS command window, enter javac directly, and then press Enter. An error appears: 'javac' is not an internal or external command, nor a runnable program ...

Answer: The reason for the error is that the windows operating system cannot find the javac command file

 

 

Question: What is the relationship between configuring the environment variable path and java?

Answer: It doesn't matter. The path environment variable belongs to a knowledge point of windows operating system. The path environment variable is specifically for the Windows operating system.

To write javac and use it at will, you need to configure the directory where javac is located in the environment variable path: path = xxxx; C: \ Program Files \ Java \ jdk.1.7.0_80 \ bin

 

Published 248 original articles · Like 602 · Visit 1.08 million +

Guess you like

Origin blog.csdn.net/qq_32963841/article/details/104739508