A few days ago, a classmate asked me how to configure the Java SE environment variable. At that time, because I was busy, I told him that when I was not busy, I would give you a tutorial. He readily agreed, but a few The days passed, Xiao Bian was still busy, and did not take the time to write a tutorial, so this classmate found me saying, "Say me to write a tutorial for me, I have not written for a few days, never give you again." Played & rdquo;, to be honest, I really feel sorry for him, since I promised people to do it, so today this small series specifically took the time to share with you to install the Java SE Development Kit (JDK) under the win10 system. Tutorial with environment variable configuration!
This article takes win10 system and the latest Java SE Development Kit 8 as an example for everyone to explain, win7, win8 system tutorial is similar, but it is not recommended to install and configure under winxp JDK8.
This tutorial is compiled by the computer knowledge learning network. It is absolutely successful and effective!
Java SE Development Kit 8 official download address
32 bit: http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-windows-i586.exe
64-bit: http://download.oracle.com/otn-pub /java/jdk/8u102-b14/jdk-8u102-windows-x64.exe
Please download 32-bit/64-bit according to your own system. If you are not sure, you can download 32-bit installation. .
Java SE Development Kit 8 installation process under win10 system
After downloading, double-click to install, as shown below:
Direct“Next”, as follows Figure:
To avoid this step, in order to avoid unnecessary trouble, please keep the default installation, especially the installation path, do not change, directly <; next & rdquo; can, of course, master Please feel free to.
The next step is the jre installation interface, as shown below:
The same, if not necessary, please keep the default installation directory, directly <; next & rdquo;,
So far, JDK 8 is installed, just click “ Close & rdquo;
Java SE Development Kit 8 environment variable configuration tutorial under win10 system
Right-click win10 start menu, select “system”,
click“system”, As shown below,
find the "advanced system settings" in the upper left corner, click on it to open the "system properties" interface,
In this interface, we select “senior&rdquo ; tab, then select the following "environment variable", click into it, as shown below:
This way, we open the "environment variable" configuration interface, the specific configuration process is as follows: Br>
a, we first create a JAVA_HOME variable name in the environment variable, as shown below:
variable name fill in JAVA_HOME, variable value fill in the JDK installation path, such as the small installation directory is C:\\Program Files\\Java\\jdk1.8.0_102, fill out and click “OK”.
b, next to the classmate's steps to create a new CLASSPATH variable name, as shown below:
variable name CLASSPATH, variable value fill the following line:
.; %JAVA_HOME%\\lib\\dt.jar;%JAVA_HOME%\\lib\\tools.jar;
To avoid errors and unnecessary troubles, please copy and paste directly, and then click OK.
c, then find the Path variable in the system variable, the Path variable does not need to be newly created, the system originally has, we only need to find it point & ldquo; edit & rdquo;, as shown below:
After editing, add the following content to the beginning of the original content in the variable value:
%JAVA_HOME%\\bin;%JAVA_HOME%\\jre\\bin;
Still, In order to avoid mistakes, please copy and paste directly, click “&” and “OK”.
Where to install the Java SE Development Kit (JDK) and environment variable configuration tutorial under the whole win10 system, we can test whether our environment variables are configured successfully through a piece of code.
Java Code copy content to clipboard public class Test{
Copy this code into Notepad and save it as Test.java.
Then open the command prompt, pay special attention to, due to win10, win8 system permissions, open the command prompt, by right-clicking on the win10 system's start menu, select “ command prompt (administrator) ) & rdquo; Open, do not enter cmd directly in the run to open the command prompt, or it will appear "javac is not an internal or external command" error.
ok, we now open the command prompt (administrator), enter the directory where Test.java is located, and the small version is placed in the root directory c:\\ of the c drive, then you can directly enter it in the command prompt. :
cd /dc:\\
When you come in, type javac Test.java
and continue typing java Test
If this is returned on the screen a JDKtest program. It means that the environment variable configuration is successful, as shown in the following figure:
The above is the installation and configuration process of installing the Java SE Development Kit (JDK) and environment variables under the win10 system introduced by Xiaobian. I hope to help everyone, if you have any questions, please leave a message, Xiaobian will reply to you in time. Thank you very much for your support of this website!
Two ways to query the DNS address of Win10 computer: Method 1: 1. Find and open “Run” i
For the old Windows users, having the activation key means that you can enjoy the Microsoft genuine
A lot of friends will go out on holiday, and when they return home, they cant wait to share photos t
How to shut down windows 10, after all, is the system that just appeared, so today I share with you
Win8 Tips Startup Interface and Quick Lock Screen Diagram Tutorial
How to set up win7 sharing? Win7 system settings LAN sharing tutorial
How to shut down Windows defender? Win10 disables the virus protection prompt method diagram
Win7 32-bit system to prevent u disk self-starting Trojans three effective measures
How can Win7/8.1 users set up to ensure that Windows 10 update files are not downloaded?
Win10 system to view network connection details
July 29 Win10 Build 10240 is a step closer to the official version of RTM
Win10 Universal Edition Dropbox App Updates New Copy Files or Folders
How to delete the Windows 10 push update icon in the lower right corner of the taskbar
How to turn off event tracking in Windows Server 2008
Win7 system opens itunes software prompts itunes was not installed correctly several solutions
How to use windows to do regular backup procedures
iPhone Solar Charger Solar Window
Keep your system desktop clean
Super bodyguard password crack
winXP dual system simple sharing RSS reader
Mobile phone Baidu input method to play special symbols
Win10 set the desktop to quickly display my computer icon tutorial