编程知识 cdmana.com

How to configure Java environment variables in win10

Many students are studying Java When I started, I was Java Environmental variables are confused , Today's article about salary extension education is about how to do it in win10 Under the configuration environment variable ;

download jdk Installation package :

First we need to download jdk Installation package , Provided here jdk Link to the installation package for : https://pan.baidu.com/s/1H7-SRL5nTdnMacZIrgZhhA,( This link is provided by extension education ) You can download it here , Choose what you need to download jdk The version will do :

There's a little bit of clarification here , I recommend you to use jdk7 perhaps jdk8, Download according to your own operating system bits ,32 Download of bits i586 Version of ,64 Bit system download x64 Version of ,windows System download exe The file of ,linux System Download for tar.gz The file of

Here's a way to look at the number of bits in your operating system :

Find... On the computer desktop My computer or This computer   Or computer Icon , Right click to select and right-click to select properties , You can see the number of operating system digits on the computer properties , With win10 System as an example :

install jdk Installation package

We downloaded jdk After installing the package , Installation required , On my side win10 64 Bit system install jdk8 For example , start-up jdk-8u171-windows-x64.exe file :

Click next

Select installation path , If it's Xiaobai , The default path is recommended , Continue to click Next

Continue to choose when finished jre Installation path for , If you are Xiaobai, you are still recommended to use the default settings , Continue to click Next

After installation, click close .

 

Configure environment variables

according to jdk After the package, you need to configure Java Environment variables can be used , Find... On the computer desktop My computer or This computer   Or computer Icon , Right click to select and right-click to select properties ,

The following uses win10 System as an example :

Click Advanced System Settings – environment variable --

After opening this interface , We need to create a new one in the system variable JAVA_HOME Variable , Pictured :

Variable name :JAVA_HOME

A variable's value : C:\Program Files\Java\jdk1.8.0_171

Then configure PATH We find PATH Variable position , Click edit :

Now click New Input  %JAVA_HOME%\bin New again Input again %JAVA_HOME%\jre\bin

And then we move these two variables up to the top , Pictured :

Click OK all the way until all the windows are closed

thus , our win10 64 Bit system jdk8 The environment variables have been configured , Next, we use the command line to verify the effect of environment variable configuration

We type... At the command line prompt  Java -version   enter   and Javac -version

The above prompt shows that our Java Environment variables are already in effect , This is where we can start our Java On a journey !

 

Based on my many years of working experience and learning experience , Recorded a new set of Java Focus on video tutorials , If you are learning now Java, At the beginning of learning Java There is no systematic learning course in the process , You can add groups 654631948 Collect the learning materials , Interview questions , Development tools, etc , There are senior people in the group java The teacher answers questions , Every day, there will also be live lectures on the basic part and architecture , You can also add my wechat renlliang2013 In depth communication , As long as I really want to learn Java People welcome .

java Basic course :https://ke.qq.com/course/149432?tuin=57912c43


Java Distributed Internet Architecture / Microservices / High performance /springboot/springcloud:

https://ke.qq.com/course/179440?tuin=57912c43

版权声明
本文为[renlianggee]所创,转载请带上原文链接,感谢

Scroll to Top