Java Note 1

Source: Internet
Author: User

The Java language is strictly case sensitive.

Don't write the words wrong.

Extended name problem

Illegal characters

Bracket matching problem

Configuring Environment Variables program execution requires the use of external commands javac need to use the Javac command in any Pan Fu

      1. Download the installation first JDK installation package, the installation process attention to the installation of other disks, do not install to the C drive just fine.

      2.  

        Open My Computer--Properties--advanced--environment variables:



      3.  

        New system variable java_home and classpath 
        variable name: java_home 
        Variable value: \ n Program files\java\jdk1.7.0
        Variable name: classpath 
        Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;

        The file directory where the variable value is for your own installation of the JDK should be noted here.

      4.  

        Select the environment variable named "path" in system variables, double-click the variable to place the absolute path of the bin directory in the JDK installation path, Add to the value of the path variable, separating it with the semicolon of the half-width and the existing path.  
        variable name: path 
        Variable value:%java_home%\bin;%java_home%\jre\bin;
        This is the Java environment configuration, after the configuration is complete, start eclipse directly, it will automatically complete the configuration of the Java environment

      5.  

        The configuration of the test environment variable is now successful or not. Enter "JAVAC" in the DOS command line window and the output Help information is configured correctly.

      6.  

The difference between path and class path

Path environment variable cm that records an executable file, such as. EXE file, to the executable file now the current path to find, if not found to go to the PATH environment variable to find,

The CLASSPATH environment variable contains the directory where the Java class's running files are located

Java Note 1

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.