Beginner Java with mind-Essentials précis-writers

Source: Internet
Author: User

One, Windows environment variables

environment variable settings: 1. My Computer--right-click Properties-Advanced System variables-environment variables

2. Under System variables, create a new variable name: Java_home

Variable Value: Storage disk (example D) D:\Java\jdk1.7.0_60_x64

New variable name after OK: CLASSPATH

                                                     variable values:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;    (this variable value takes note of all punctuation marks)

3. Select the environment variable named "path" in system variables, double-click the variable name: path
Variable value:%java_home%\bin;%java_home%\jre\bin; (This paragraph does not leak any letters and symbols, placed in the original variable value of the most front)

The above is the Java environment configuration, the configuration is completed directly after the eclipse, automatically complete the configuration of the Java environment.

Second, Java compile run--java compile command--run command bytecode file class name. java--byte-code file. CLASS

Console example: D:\>javac Xxx.java

D:\>java XXX  

Beginner Java with mind-Essentials précis-writers

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.