Error executing Javac When installing JDK in Java

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.