Java Infrastructure Development Environment configuration

Source: Internet
Author: User

First, the principle of environment variable configuration

Configuration environment variable Path if we compile and run according to the above, it would be too much trouble, so here we can configure the environment variable path 1, the steps to configure the environment variable

Then you can see the effect directly.

If the DOS says there is no javac or Java command exists, it is that your path does not have a bin path configured for the JDK or a new boot DOS

The process diagram is roughly as follows

I. Configuring environment variable Classpathclasspath The configuration method that is set up to facilitate locating Java files or class files

The environment variable path and classpath sometimes bring errors

1, the System environment variable path brings error

2, the environment variable classpath caused by the error configuration environment variable Classpath, then be sure to configure the local path ".", ";". First, the environment variable java_home configuration java_home is also the JDK's total directory, some software needs this. Java_home configuration method and configuration classpath the same way, the path is the path of the bin directory is removed on the line, that is, the total directory. Ii. Summary of some of the issues 1, why compile can pass, not run it?

A: Run can not do this, compile can. 2, since there is classpath so there is no javapath AH

A: The source code does not need to be specified, because it is only associated with the class file after compiling

Java Infrastructure Development Environment configuration

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.