Dark Horse Programmer--java Foundation-environment variable setting

Source: Internet
Author: User

-----------Android Training, Java training, Java Learning Technology blog, look forward to communicating with you! ------------

The setting of environment variables may be considered by many as not a problem. But when I first touched the Java program, thinking about programming, as long as you can run the code is OK, what do you care. Also do not know how to set up, can run the DOS window is OK, so has always been to this problem is ambiguous. But this problem is like a fishbone, stuck in my throat, although it will not have any impact on programming, but always uncomfortable. So today took time to look back to see the video, coupled with their own experiments several times, finally to understand the problem.

The purpose of setting the PATH environment variable is in order to enter Javac, Java and other statements in the DOS window, where we want the system to look for Java.exe, javac.exe the two execution files. The Java.exe, Javac.exe

When the directory is added to the PATH environment variable, we can downgrade the Java.exe and Javac.exe in any directory because the system knows where they are. The advantage of this is that we do not have to call these two files in the directory where the Java.exe and Javac.exe are located.

The purpose of setting up classpath is to tell the JVM (virtual machine) where to look for ". Class" files.

Having doubts, and then finding a solution yourself is cool.

Dark Horse Programmer--java Foundation-environment variable setting

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.