The most detailed Java environment building for Javaweb Development (Windows edition)

Source: Internet
Author: User

It takes about 3 minutes to read the text.

First of all, welcome to learn Javaweb, here will give you a more detailed tutorial, from the most basic start, step-on depth. Will let beginners of you less trample a lot of pits (truth), if you have mastered the javaweb development of the basic part, please be patient to follow the advanced stage.

The installation configuration for our Java environment starts below.

1. Open the Java website

Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html, here you can choose the Java version you want to download, here we take java1.8 as an example to explain. Before downloading, we need to accept the agreement before we can download it.

After accepting the agreement, we can choose the corresponding version to download according to whether our computer is a 32-bit system or a 64-bit system. You can see how many bits of your computer are in the computer's properties.

Here we choose 64-bit Java version to download, namely Jdk-8u171-windows-x64.exe. After the download is complete, it will be an EXE file.

We double-click to install, after double-click, we will enter an installation wizard

Click Next

This shows the installed features and installation directory, the features that need to be installed we do not need to change, using the default on the line. However, the installation path here, we recommend that you modify, because the default is installed under the C drive, and the installed directory name also contains spaces. More importantly, as a good habit of developers, we often need a lot of development software, so at this time we should create a new directory dedicated to development tools, so that we can manage it well. Here I put the installation directory under my own Tools folder, which is D:\Tools\jdk1.8.0_171. Then we click on the next step, to install, after the installation, you can see the following directory structure.

Our Java installation is complete here, but it will not be successful if we verify it at the command line. Although the current Java installation will automatically add environment variables, but after we change the directory is not automatically joined, so we need to manually add. Let's reopen the window that just looked at the number of system bits.

Click Advanced System Settings

Click Environment variables

Click Create a new system variable

Next, we add the newly created system variable in path because the system executes the command at the command line to find it in path, so we add the Java executable bin directory to path.

Be careful to add to the existing inside; indicate another. Then click OK until you exit the Environment Variables window. Here we complete the configuration of the Java environment, and then we validate it on the command line. We have the Windows key on the keyboard (that is, the key of 4 blocks) +r, or click the program button in the lower left corner, find the run, enter cmd, click OK.

Enter Java-validated commands, enter

We will get the following results.

In this context, our Java environment has been installed and the configuration is complete, and we can develop it later. Congratulations you have completed the first step of the work, you can give yourself to encourage the following.

If you have any questions, you can contact me by the following way.

The most detailed Java environment building for Javaweb Development (Windows edition)

Related Article

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.