Java Fundamentals 1

Source: Internet
Author: User

Configure the appropriate environment variables after you install the JDK.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/88/FC/wKioL1gEQpay-EUSAACp2xqciwM405.png "title=" Huanjign.png "alt=" Wkiol1geqpay-eusaacp2xqciwm405.png "/>

Java_home

d:\jdk1.7 (JDK installation directory)

PATH

%java_home%\bin;< Original Path value >

CLASSPATH

.; %java_home%\lib\tools.jar; %java_home%\lib\dt.jar


650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/88/FE/wKiom1gEP2OTuMoKAAAanhDSWLU520.png "title=" Shell.png "alt=" Wkiom1gep2otumokaaaanhdswlu520.png "/>


The premise is that we have entered the path to the code, because the subsequent use of the relative path

Javac # # #为编译java程序的命令 (Java compile)

-D Bin # # #是编译后生成的 the location where the. class file is stored,-D is the parameter Directroy

Src/helloworld.java # # #是源代码存放的相对路径

Java # # #是程序运行命令

-CP Bin # # #分别表示参数classpath, the path to run the program

HelloWorld # # #是程序名

Javac-d bin Src/packagedemo.java Src/dog.java Src/cat.java

JAVA-CP bin Org.westos.java.lesson1.PackageDemo//Recommended Use

*JAVA-CP bin Org/westos/java/lesson1/packagedemo


Java Fundamentals 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.