JAVA_HOME: C: \ Program Files \ Java \ (x86) jdk1.8.0 _111
The CLASSPATH:; %JAVA_HOME%\lib\dt.jar; %JAVA_HOME%\lib\tools.jar;
Path:; The % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin.
Solving!!!!!!
CodePudding user response:
Javac file lost, enter C: \ Program Files \ Java \ (x86) jdk1.8.0 _111 \ bin directory. See if there is any javac jar this folder
If you don't online again next JDK,,,, reshipment,
CodePudding user response:
Whether all configured system variables
CodePudding user response:
Java, javac not
The easiest way to think of javac file damage or environment variable configuration errors,
But in fact, the biggest possibility is to install any other written in Java software, software changed the environment variable (set up the Java command)
But there is no javac
Did you see on the computer to AE, ERP, software, such as these will change the environment variables, give a person a kind of illusion, Java is ready to run, seems to have half the success, but in fact there is no configuration is successful,
CodePudding user response:
Configure the environment variables after installed?
CodePudding user response:
The computer is just reinstall system JDK is 1.8 environment variable configuration under the website above
CodePudding user response:
reference 1st floor bichir response: javac file lost, enter C: \ Program Files \ Java \ (x86) jdk1.8.0 _111 \ bin directory. See if there is any javac jar this folder If you don't online again next JDK,,,, reshipment, Just under the website to a or so CodePudding user response:
reference baidu_26558103 reply: 3/f Java success, javac not The easiest way to think of javac file damage or environment variable configuration errors, But in fact, the biggest possibility is to install any other written in Java software, software changed the environment variable (set up the Java command) But there is no javac Did you see on the computer to AE, ERP, software, such as these will change the environment variables, give a person a kind of illusion, Java is ready to run, seems to have half the success, but in fact there is no configuration is successful, The computer is just reinstall the system CodePudding user response:
refer to 7th floor a18036339820 response: Quote: reference baidu_26558103 reply: 3/f Java, javac not The easiest way to think of javac file damage or environment variable configuration errors, But in fact, the biggest possibility is to install any other written in Java software, software changed the environment variable (set up the Java command) But there is no javac Did you see on the computer to AE, ERP, software, such as these will change the environment variables, give a person a kind of illusion, Java is ready to run, seems to have half the success, but in fact there is no configuration is successful, The computer is just reshipment system Javac command cannot execute, need to check the path:; The % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin. CodePudding user response:
For reference only! http://blog.csdn.net/sun1956/article/details/8760239 CodePudding user response:
- an environment you have met this CodePudding user response:
I also had this problem, Why not use Eclipse or MyEclipse? CodePudding user response:
Is really prove useful Java JDK installed is at ordinary times you pass DOS using javac to compile the source code file? If you use the eclipse tools myeclipse can need not consider javac compile problem so no need to worry about, a lot of kinds of reasons environment variables or mismatched files can damage etc with the Java command line CodePudding user response:
Configured environment variables, sometimes need to reopen the CMD try, if not yet will reset the JDK, CodePudding user response:
Suggest to look at the first installed JDK documentation pack the bin folder is there Javac command, not is to install the JRE was deleted CodePudding user response:
the JDK + jre is complete, if not to install the JDK, input in the CMD and javac will prompt "" javac" not internal or external command, nor can run the program or batch file " CodePudding user response:
Important issue is that the JAVA installation directory is not D disk, installed in the default C: \ Program Files \ JAVA is ok, I am such a problem, only system disk, what a big pit! CodePudding user response:
The refer to the original poster a18036339820 response: JAVA_HOME: C: \ Program Files \ Java \ (x86) jdk1.8.0 _111 The CLASSPATH:; %JAVA_HOME%\lib\dt.jar; %JAVA_HOME%\lib\tools.jar; Path:; The % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin. Solving!!!!!! The % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin. Join the classpath CodePudding user response:
After installed JDK, configure the environment variables CodePudding user response:
Please put the % JAVA_HOME % \ bin in the path to the front, should be the ORACLE CodePudding user response:
The path of the path % JAVA_HOME % \ jre \ bin; Remove the interference CodePudding user response:
I have seen such a problem, is the environment variable configuration is wrong, I know that there are many online tutorial by default the three-step configuration, javahome, path and classpath, JAVA_HOME normal distribution line C: \ Program Files \ Java \ jdk1.8.0 _191 Path should pay attention to the C: \ Program Files \ Java \ jdk1.8.0 _191 \ bin C: \ Program Files \ Java \ jdk1.8.0 _191 \ jre \ bin that the added The CLASSPATH is normal distribution.; % JAVA_HOME % \ lib. % JAVA_HOME % \ lib \ tools. Jar You change the Path to me these two specific, pay attention to is divided into two added to just go, hope to help you CodePudding user response:
The reference 3/f & lt; Span style="color: # 4788 c7" & gt; Baidu_26558103 & lt;/span> Response: Java success, javac not The easiest way to think of javac file damage or environment variable configuration errors, But in fact, the biggest possibility is to install any other written in Java software, software changed the environment variable (set up the Java command) But there is no javac Did you see on the computer to AE, ERP, software, such as these will change the environment variables, give a person a kind of illusion, Java is ready to run, seems to have half the success, but in fact there is no configuration is successful, & lt; Br/& gt; That is the only way is to uninstall before other download Java software?