First we need to download the JDK (Java Development Kit), the JDK is the core of the entire Java development, it contains the Java Runtime Environment, Java tools and Java foundation of the class library.
: http://www.oracle.com/technetwork/java/javase/downloads/index.html
After the download and installation is complete, and does not directly compile the Java original program we wrote, next we need to configure the environment variables to tell the computer to execute the path of the application.
Environment variable Configuration method:
- Open My Computer and follow the sequence of actions: right--Properties--Advanced system settings--advanced--environment variables
- After selecting the environment variable, we can see the following interface, and then select "System Variable-new", the new system variable will pop up the dialog box, enter the variable name "Java_home", enter the JAVA installation path in the variable value, click OK;
- After the previous step, continue to double-click on the path in the environment variable, will pop up the "Edit environment variable" dialog box, click "New", enter the following: "%java_home%/bin", then click OK, JAVA environment variable Even if the configuration is completed ^_^.
Verify that the environment variable is configured successfully
After the above steps, we want to know if we have successfully built a Java development environment, so we enter the DOS window, respectively, enter Java, Javac, java-version, see if there is similar display content.
If you see the above, then, congratulations, your Java development environment has been built successfully ^_^.
Java development environment built under Windows system