Chapter jdk1.2 Download and Installation

Source: Internet
Author: User
Tags processing text

Looking at the previous content, you are not already eager to do it. Don't worry, before you can write and run your first Java program, you need to do a series of preparatory work. As the saying goes: "A good beginning is half the success." "I hope you can seriously study this talk, for the future study to make full preparation."

Programming with the Java language, like programming in other languages, requires compilers or interpreters to compile or interpret programs. One of the software that contains the Java compiler (JavaC) is the Java Development Kit (Jdk,java Development Toolkit), a free product offered by Sun Microsystem Company. The current version of the JDK is 1.2, and you may have a new version when you see this tutorial. However, the version is not a very important issue, generally as long as the program can be slightly modified to compatible with the old version. If you have a shared disc handy, it is recommended that you look for it and you may find the JDK. No, it doesn't matter, you can download it to the Sun Company's website. Http://java.sun.com/products/JDK/1.2/

After you have the JDK, you can install it. Follow the prompts on the screen when you install. It is recommended that you use the default settings. After the installation is completed, it is recommended to view the Readme file (Readme), which details the installation of the software, settings, and so on, careful study will benefit, but requires you to have a certain level of English.

For ease of use, there are two things you need to do: Associate the suffix ". Java" of the Java source file with a word processing software. The word processing software is required to have the basic functions of processing text files and to save text files. The Reference file association adds the path where Javac is located in the Autoexec.bat file. If the installation path is "c:/jdk1.2", add the following statement to the Autoexec.bat:
path=c:/jdk1.2/bin;%path%
Reference Settings path

Now that you are ready to write your first Java program, you can continue this tutorial at any time.

File association
Follow these steps to associate a word handler for the Java source file: In Windows Explorer, select File-New-text file. Name the new text file "Myjava.java". The file name can be arbitrarily taken, but the suffix must be. java. Press "Shift" while right-clicking the file and selecting "Open mode ...". In the file. Java Description edit box, enter Java source files. In the Select Programs to Use list box, select the word processor you want to use. Or click the other button to select a word handler that is not in the list box. Select the Always use this program to open this type of file check box. Click the OK button.

When you have completed these steps, you can open the Java source file by double-clicking the word handler.

You can also complete this preparation by downloading some tool software such as Jpad,textpad. After you install this type of software, the file's association is automatically established. In addition, they not only have the ordinary text processing ability, but also can compile, run and even debug the Java program. If you do not have such tools, you can download them.

Jpad's address: Http://www.cannet/expyes
TextPad's address: http://www.textpad.com

Path settings
Because programs such as the Java compiler need to run in the Md-dos mode of Windows, you need to set the path where the compiler resides for ease of use.

Using the word processor to open the Autoexec.bat in the C-packing directory, add the following statement:
path=c:/jdk1.2/bin;%paht%
(Assuming the installation path is "c:/jdk1.2")

Add the above statement to a statement block that does not begin with ":" In the Autoexec.bat file.

Once you have done this, you can type in the any directory in MS-DOS mode:
java-version

If the above settings are successful, the version number of the JDK will be displayed.

If you have installed the software similar to the one mentioned in the first section, please set it yourself according to the requirements of the software.

Using the word processor to open the Autoexec.bat in the C-packing directory, add the following statement:
path=c:/jdk1.2/bin;%paht%
(Assuming the installation path is "c:/jdk1.2")

Add the above statement to a statement block that does not begin with ":" In the Autoexec.bat file.

Once you have done this, you can type in the any directory in MS-DOS mode:
java-version

If the above settings are successful, the version number of the JDK will be displayed.

If you have installed the software similar to the one mentioned in the first section, please set it yourself according to the requirements of the software.

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.