Android development environment JDK configuration execution JAVAC hint not internal or external command resolution

Source: Internet
Author: User

' JAVAC ' is not an internal or external command, nor is it a program or batch file that can be run. Problem Solving method Sharing!

' JAVA ' is not an internal or external command, nor is it a program that can be run or a batch file solution similar.



Reason one: No jdk installed, only JRE installed
    1. 1

      JDK1.7.0_60+JRE is complete, if the JDK is not installed, the cmd inside the input JAVAC will prompt "' JAVAC ' is not an internal or external command, is not a running program or batch file"

      Steps to read
    2. 2

      The workaround is to install the JDK

      END
Baidu Experience: jingyan.baidu.comJDK and JRE installed, but configuration failed
  1. 1

    If the JDK is installed, the normal cmd input javac must be successful. You will be prompted with the following information

    Steps to read
  2. 2

    Therefore, there is a problem with the environment configuration, so check three places, the first "Java_home"

    The content of the Java_home is the JDK installation directory. Location:D:\Program Files (x86) \java\jdk1.7.0_60, and no semicolon behind

    Steps to read
  3. 3

    Second, check classpath, which is a call to a jar package. .; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; (preceded by a number and semicolon, and a semicolon at the end.)

    Or can be written as ".; %java_home%\lib ", the same effect.

    Steps to read
  4. 4

    Third check if the "PATH" variable is correct

    The path variable is simply the meaning of the bin directory of the JDK. %java_home%\bin;

    Steps to read
  5. 5

    There will be no problem if the above points are completed.

Android development environment JDK configuration execution JAVAC hint not internal or external command resolution

Related Article

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.