Come in to learn maven, reconfigure a set of JDK on the machine, uninstall 1.6, install 1.7 is reported Javac is not a valid command, java,java-version is no problem. This problem has been bothering me for a long time, between 1.6 is also this problem, find a solution, looking for a long time, today installed 1.7 still so, looking for me is going crazy, thought is a computer system problem, ready to re-install the system tomorrow. In the installation of MAVEN, input mvn-version is reported JKD java_home installation problem, very depressed, the result a look, the original I value is java_home configuration, the path of the configuration a bit in depth.
Wrong java_home path: D:\Java\jdk1.7.0_67\bin
Correct jvav_home Path: D:\Java\jdk1.7.0_67
This is the little detail that javac this command.
In addition to the MAVEN variable today, there is a small episode, is to download maven, the configuration of MAVEN variables, input MVN hint is not recognized, find the problem, found the maven_hoem variable configuration to classpath, should be configured on the path.
Today, after solving this problem that has been bothering you, I feel more comfortable.
Error executing Javac When installing JDK in Java