Objective
Hello everyone, write a 学会Java前提-手把手教你配置JDK环境变量
summary of today, I hope you like
Downloading the JDK, and eclipse is easier, and provides JDK 9 address:
Http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html
Provide JDK 8 address:
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Describe the configuration of the JDK
After the JDK package installation is complete, you need to configure the environment variables. Click "My Computer" on the desktop or "This computer", select "Properties", then select "Advanced", click on the "Environment variables" to pop up the "Environment variables" dialog box, which contains "User variables" and "System variables" two parts.
Set the system "variable name" to "Java_home", "Variable Value" to "C:\ProgramFiles\Java\jre1.8.0_112", which is the JDK installation path, you can also copy the path in the address bar directly.
Select the System variables list again to find its "Path" (double-click)--"edit", pop "edit System Variable", click New;
Then, click the New button under System variables to create an environment variable named "Classpath" with a value of ".", a point in English that represents the current path.
Environment variables:
Java_home:d:\java\jdk1.8.0_25
CLASSPATH:.; %java_home%\lib;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar;
Path:;%java_home%\bin;%java_home%\jre\bin
Verify that the configuration is successful
Click Win key to run (or use win+r)
- Input cmd command
- Input Java-version
Then, in console input, displaying the version information appears to represent success.
Download Ecplise
Download Eclipse link (official website): https://www.eclipse.org/downloads/
Next we go to this link: https://www.eclipse.org/downloads/eclipse-packages/
What you can see is that so much, you click on the eclipse IDE for Java developers, and then choose 32 or 64 next to the download just fine, download a compressed package, unzip it can be used. Isn't it simple? When someone encounters a scenario where eclipse is incompatible with JDK 9.0, the solution is to open the Eclipse.ini file and add a line at the end of the file:--add-modules=all-system
Summarize
- This article speaks of learning Java prerequisites-hands-on teaching you to configure the JDK environment variables, if you have a better understanding, welcome to communicate
- Positioning: Sharing
Android
& Java
knowledge points, interested to continue to follow
Section I: Learn Java prerequisites-teach you to configure JDK environment variables