Build a Java Development Environment-writing to a beginner in Java

Source: Internet
Author: User

Http://blog.chinaunix.net/u/31541/showart_266332.html

Modified Version

1. Build a development environment in Windows

1. Download and install JDK for Windows from http://java.sun.com. Assume that the installation directory is C:/jdk6.0.

2. Set the related environment (in Windows XP) for example:

1. Right-click my computer on the desktop and select Properties

2. Select the "advanced" tab, find the system variables, and click "new" below"

3. variable name: java_home; Value: C:/jdk6.0 (your JDK installation directory); click "OK ".

Note: C:/jdk6.0 cannot be followed by a; number.

4. Create in the same way. The variable name is classpath and the value is % java_home %/LIB ;.

Note: It is followed by a semicolon and a dot (in English). It cannot be an error.

Note: if it is placed at the beginning or in the middle of another classpath path, it must exist. If it is placed at the end, no; sign is required. The English ending point is the meaning of the current folder. The plus or minus sign also depends on the start, middle, or end.

5. Find "path" in the system variable, click "modify", and append "; % java_home %/bin" to the end of the corresponding value. The quotation marks are not included, click "OK" until all windows are closed.

Note: If a path is added to the end of an existing project, it does not matter if the end is not added. If it is added to the beginning or in the middle, A; sign is required.

6. Open the "run" window, enter "cmd" and press Enter. In the prompt window that appears, enter "javac-version" and press Enter. Similar information such as "javac 1.6.0" appears, the success is also achieved.

Note: It is best to use the javactest. Because some programs have copied java.exe to system32, even if the bin path under the Java installation directory is not set, it may run normally, thus affecting the test results.

Note: After modifying the environment variables, restart cmd.

 

7. install your development IDE, such as Eclipse and JBuilder.

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.