First, the principle of environment variable configuration
Configuration environment variable Path if we compile and run according to the above, it would be too much trouble, so here we can configure the environment variable path 1, the steps to configure the environment variable
Then you can see the effect directly.
If the DOS says there is no javac or Java command exists, it is that your path does not have a bin path configured for the JDK or a new boot DOS
The process diagram is roughly as follows
I. Configuring environment variable Classpathclasspath The configuration method that is set up to facilitate locating Java files or class files
The environment variable path and classpath sometimes bring errors
1, the System environment variable path brings error
2, the environment variable classpath caused by the error configuration environment variable Classpath, then be sure to configure the local path ".", ";". First, the environment variable java_home configuration java_home is also the JDK's total directory, some software needs this. Java_home configuration method and configuration classpath the same way, the path is the path of the bin directory is removed on the line, that is, the total directory. Ii. Summary of some of the issues 1, why compile can pass, not run it?
A: Run can not do this, compile can. 2, since there is classpath so there is no javapath AH
A: The source code does not need to be specified, because it is only associated with the class file after compiling
Java Infrastructure Development Environment configuration