Installation of JDK and NetBeans

Source: Internet
Author: User
Tags netbeans

Installing the JDK

1. Double-click the Installer, in the JDK 6.0 Custom Installation dialog box, select the feature component you want to install and click the Change button to select the installation path (modified here to C:\Java\jdk1.6.0_21\) or the default installation path. When you are done, next.

2. After the feature component is installed, a dialog box pops up to configure the Java Runtime Environment (JRE). Click the Change button to select the installation path (modified here to C:\Java\jre6\), or the default installation path. When you are finished, next, start installing the JRE.

3. After the installation is complete, in the JDK installation directory there are bin, demo, Lib, JRE and sample subdirectories, the following are the main functions of each subdirectory.

    • Bin directory: Store the tools used to develop Java programs, such as compiling instruction Javac, executing instruction Java, etc.
    • DB Directory: The resources and cases used to develop the use of embedded database Derby.
    • Demo CATALOG: Store Java platform programming cases with source code, including examples using Swing and other Java base classes and the Java Platform Debugger architecture.
    • Include directory: a C + + header file that is used to compile local methods.
    • JRE directory: holds the Java runtime Environment (JRE).
    • LIB Directory: the class library file that holds the development kit.
    • Sample directory: Store The example program that comes with the development kit.
    • Src.zip: The source code file that holds the Java class library.
setting up the Java runtime environment

Windows looks for a command based on the PATH environment variable, and the value of path is a series of paths. So after you install the JDK, you also set the environment variables for Windows.

1. Environment variables, properties, System Properties, my computer. Click New in the System Variables Options group, and in the popup dialog box, enter the variable name java_home and its value C:\Java\jdk1.6.0_21 (here for this value, the JDK's installation path), OK.

2. In the System Variables option group, in the path variable, edit, at the beginning, add:%java_home%\bin. Are you sure.

3. Start, run cmd, enter java-version to see the JDK related version of the information, the configuration is successful.

Installing NetBeans

1. Double-click on the installer and select the Customize button to check all features in the custom installation. Are you sure. Next.

2. Choose the installation path for the NetBeans IDE and the path to the JDK for the NetBeans IDE.

3. All the way to the next installation.

Reference: Song Bo Editor-in-chief, Java program Design-based on JDK 6 and NetBeans implementation, this book is good for Java as a current learning.

Installation of JDK and NetBeans

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.