Java is an object-oriented language. It is through the operation mechanism of virtual machine to realize "cross-platform".
There is not much to say other, to get to the point first, before learning any language before the first step is to build a good development environment, the Java development environment is built as follows:
1, to the official website http://www.oracle.com/technetwork/java/javase/downloads/index.html download the corresponding JDK version
2, install the JDK (recommended to modify the installation location and installation file directory without spaces)
3. Right-click My Computer, select Properties--Advanced--environment variables
New system variable Java_home and path (double-click to modify if it already exists)
Variable name: java_home
Variable Value: D:\Java\jdk1.7.0
Variable name: Path
Variable value:%java_home%\bin;%java_home%\jre\bin;
4, the test environment variable configuration success or not. Enter "Javac" in the CMD Command line window and the output Help information is configured correctly
Note: The role of the CLASSPATH environment variable is to allow the OS to find the commands we use, tell the JVM where to find the Java class that is running, and, after JDK1.5, find the Java class under the current path by default, so you can not configure
First day of Java: Install and build a Java development environment