Java JDK and JRE installation and environment variable configuration

Source: Internet
Author: User

"工欲善其事, its prerequisite. "Before you learn the Java language, you must build the development environment that Java needs. So, the beginning of learning Java is naturally recorded Java JDK and JRE installation method and the method of configuring environment variables, the following 32-bit java1.7 version of the installation package as an example, recorded in the Java Development environment.

The first window that pops up after the 32-bit Java installation package opens asks for the installation path, at which point the installation path is the JDK's installation path

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/88/EA/wKioL1gAloTwdFR_AAC16V7tums905.png-wh_500x0-wm_3 -wmp_4-s_1200701956.png "title=" 8 ' @]93m1}4 ' Uqpg1fr6q~@y.png "alt=" Wkiol1galotwdfr_aac16v7tums905.png-wh_50 "/>

After clicking Next, after the JDK installation progress bar is complete, you will be asked the installation path again, note that the installation path at this time is the installation path of the JRE. JRE and JDK to install under a different file path, you can set the JAVA\JDK and java\jre two file paths.

After the JRE installation is complete, the Java installation is complete, but to drive the successful installation of Java, you must configure the new environment variable.

Turn on the computer--Properties--Advanced system settings, you will see the setting location of environment variables

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/88/EA/wKioL1gAmXrgrmloAAB9KC5q07s420.png-wh_500x0-wm_3 -wmp_4-s_942942059.png "title=" A2c{brp9n7jy_q[c9h6 ' Nec.png "alt=" Wkiol1gamxrgrmloaab9kc5q07s420.png-wh_50 "/>

After clicking, create a new user variable java_home, set the path of the JDK folder to the property:

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/88/EA/wKioL1gAmfvCF1E4AAA-H50SLYk734.png-wh_500x0-wm_3 -wmp_4-s_2262831538.png "title=" FOUKF7M0FV (j3yzvd}mgkzf.png "alt=" Wkiol1gamfvcf1e4aaa-h50slyk734.png-wh_50 "/>

Then edit the system variable path, use the value at the end of the variable, and then add the bin directory of the JDK by separating it from the preceding content (without moving the previous content):

Example: E:\java\jdk\bin;

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/88/EE/wKiom1gAmqyybOxGAABAbhSGMQ0629.png-wh_500x0-wm_3 -wmp_4-s_1438171575.png "title=" Yafhvx78a~{zh_~yd@f$d%d.png "alt=" Wkiom1gamqyyboxgaababhsgmq0629.png-wh_50 "/>

Finally, the new system variable CLASSPATH, the variable value is set to.; Start with a dot and semicolon, and then add Dt.jar and Tools.jar under the Jdk\lib directory, noting that the values of two variables are separated by semicolons.

Example:.; E:\java\jdk\lib\dt.jar; E:\java\jdk\lib\tools.jar;

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/88/EE/wKiom1gAmnyDDwArAABAhsx6EC0588.png-wh_500x0-wm_3 -wmp_4-s_3586466054.png "title=" Lnj1y9 (y]j@qfk7f@ibryai.png "alt=" Wkiom1gamnyddwaraabahsx6ec0588.png-wh_50 "/>

Set up here and you're done, then check to see if it's installed correctly. At the command prompt, enter cmd, then enter Javac and Java, if you can pop a lot of properties, then OK!!!

(Of course, there are a variety of Java environment variable configuration methods, this is the way I like it)

Java JDK and JRE installation and environment variable configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.