Home > Back-end >  Environment variable Settings but it won't be success
Environment variable Settings but it won't be success

Time:10-10

As shown in figure, the environment variable configuration won't live to use successfully, which bosses know what reason be?

CodePudding user response:

IfTest. Java points will not be in Chinese?
Execute the following command
Dir
See if there are any Java file
If so, try to execute the following command
Set the classpath=. The classpath % %
Javac ifTest. Java

CodePudding user response:

reference 1st floor qybao response:
ifTest. Java points will not be in Chinese?
Execute the following command
Dir
See if there are any Java file
If so, try to execute the following command
Set the classpath=. The classpath % %
Javac ifTest. Java

What do you think have a Java file?

CodePudding user response:

Not to say that, in the console, enter your screenshots of the path, executing the following command
Dir

CodePudding user response:

In the current directory dir displays the content of no Java

CodePudding user response:

reference qybao reply: 3/f
is not to say that, in the console, enter your screenshots of the path, executing the following command
Dir

Did not show the Java

CodePudding user response:

That is not a Java file
Where did your Java file, enter the path, javac command again

CodePudding user response:

refer to 6th floor qybao response:
there is no Java file
Where did your Java file, enter the path, and then execute javac command

This is indeed can compile this file, but not set the environment variable, in order to facilitate don't need to enter each time the Java files in the folder in the running, just don't know why after set the environment variable with the

CodePudding user response:

Dizzy, just to set environment variables to find the Java command and JVM loading core packages
Java source code, how do you set, such as my Java files in the u disk, mobile hard disk), how do you set the environment variables?

CodePudding user response:

refer to the eighth floor qybao response:
dizzy, just to set environment variables to find the Java command and JVM loading core packages
Java source code, how do you set, such as my Java files in the u disk, mobile hard disk), how do you set the environment variables?

Ok, thank you

CodePudding user response:

You look at is to compile the Java file path is wrong, must be in its path to compile,

CodePudding user response:

Restart your computer or reset!
  • Related