[Original] practice Java (1)

Source: Internet
Author: User
Java environment configuration in Windows

1. Download JDK
Go to the http://java.sun.com to download the JDK version you need.

2. Install JDK
Double-click the downloaded file and install JDK in the specified directory.
E.g. D: \ j2sdk

3. Configure Environment Variables
A. Right-click my computer and choose Properties> advanced> environment variables.
B. Click the new button in the system variable area to bring up a new window,
Set the variable name to java_home,
Enter the variable value in the JDK installation directory.
E.g. D: \ j2sdk and click OK.
C. Edit the PATH variable in the system variable area
% Java_home % \ bin;
% Java_home % \ JRE \ bin;
Add to path.
If Oracle is installed, it must be added before the setting of oralce.

4. Test
"Start" --> "run" --> "cmd", enter
C: \ Documents ents and Settings \ Administrator> JAVA-version
The following message is displayed:
Java version "1.4.2 _ 04"
Java (TM) 2 Runtime Environment, Standard Edition (build 1.4.2 _ 04-b05)
Java hotspot (TM) Client VM (build 1.4.2 _ 04-b05, mixed mode)
The installation is successful.

** Small experience **
1) Remove the version number from the software installation directory name, e.g. D: \ j2sdk
This is very convenient to cope with software upgrades!
2) In environment variable settings, % variable % can be used to replace the variable value.

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.