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