Install Java SE in Windows XP

Source: Internet
Author: User

-- Start

1. Download and install Java SE

Log on to the official Oracle website to download the latest Java SE development kit, and install it as if other software was installed. It is worth noting that you should not select the default installation path, the default installation path contains spaces, which may cause some problems. suppose we install it in the path c: \ applications \ Java \ jdk1.5.0 _ 16.

2. Set the environment variable path

Right-click my computer, select Properties, select Advanced, environment variables, and modify the system variable path, add c: \ applications \ Java \ jdk1.5.0 _ 16 \ bin to the end of path.

Why do we need to add this directory to the path environment variable? If you look at this directory, you will find that this directory contains all executable files (.exe), where java.exe is located. When we execute Java-version, the system will search for the java.exe command in the directory specified by path. if we do not add this directory to the path, we can also execute the Java command, such as c: \ applications \ Java \ jdk1.5.0 _ 16 \ bin \ Java-version, isn't it very troublesome?

3. test whether the installation is successful.

Enter cmd in start and run, and enter Java-version in the pop-up dos dialog box to test whether the operation is successful.

4. Source Code

Java is open-source. After installation, We can find its source code: src.zip in the directory c: \ applications \ Java \ jdk1.5.0 _ 16. After learning Java to a certain level, looking at the source code is a good way to improve our Java level.

5. API documentation

Java API documentation is not distributed along with the installation package. Search for Java API in Google and select a document suitable for your version to read online. Of course, you can also download the documents that have been packaged by others, I recommend that you use online documentation.

---For more information, see:Java
--Shengming: reprinted, please indicate the source
-- Last updated on 2012-04-20
-- Written by shangbo on 2012-04-20
-- End

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.