[Java series] java Development Environment establishment, java series Development Establishment
Description
This article describes how to build a java Development Environment Based on windows 10, including:
(1) Preparation of installation Materials
(2) Installation Process
(3) test whether the installation is successful
(4) Hello Word test
1. installation material preparation
Before building a java development environment, you must prepare JDK and Eclipse.
1.1 JDK
: Http://www.oracle.com/technetwork/java/javase/downloads/index.html
1.2 Eclipse
: Http://www.eclipse.org/
2. Installation Process
Jdk installation (keep in mind the installation path, which is required during environment variable configuration) and ecs0se are all silly one-click installation. Here I will skip this step and explain the configuration of environment variables based on windows 10.
Configure three environment variables: HOME, CLASSPATH, and PATH.
Add JAVA_HOME variable
Jdk installation path: "C: \ Program Files (x86) \ Java \ jdk1.8.0 _ 144"
JAVA_PATH variable configuration
If the PATH variable exists, add "% JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin;" in the header. If the PATH variable does not exist, create the PATH variable, add "% JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin ;"
JAVA_CLASSPATH variable configuration (if JDK 1.5 or later is used, you can compile and run Java programs without setting the CLASSPATH environment variable .)
Add the JAVA_CLASSPATH variable value ".; % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ lib \ tools. jar ;"
3. test whether the installation is successful.
WIN + R, Enter cmd
Type the following command:Java-version,Java,JavacThe following information is displayed, indicating that the environment variable is successfully configured;
Enter java-version to test whether jdk is successfully installed)
Enter java
Enter javac (test whether the environment variable is configured successfully)
4 Hello Word test
.
5. Copyright Zone
- Thank you for your reading. If you have any shortcomings, please kindly advise and learn and make progress together.
- Blog website: http://www.cnblogs.com/wangjiming /.
- A small number of articles are integrated by reading, referencing, referencing, copying, copying, and pasting. Most of them are original articles.
- If you like, please recommend it; if you have new ideas, welcome to raise, mailbox: 2016177728@qq.com.
- This blog can be reposted, but it must be a famous blog source.