Learn Java from scratch (i) Hello World Zokung 2005.4

Source: Internet
Author: User
Tags documentation

Learn Java from scratch (i) Hello World Zokung 2005.4

From yesterday began to learn Java, their own in the study of some of the problems and experience sent out for everyone to learn from.

To write a Java version of the Hello World program and run it requires the following two steps:

1, download and install JDK5.0 or JDK1.4.2. Do not have any question to the version number, according to my understanding, JDK5.0 namely JDK1.5, is JDK1.4.2 important upgrade, inside added many new language characteristic, why call 5.0 not to call 1.5, I thought probably is for the commercial consideration, this point does not need to ignore, Small left I always like new things, so download is JDK5.0,

Next at the address is: http://java.sun.com/j2se/1.5.0/download.jsp

As shown in figure:



Documentation also want to download Oh, otherwise a lot of help can not see.

After the download is complete you may encounter the same problem as the small left, the download file has a strange name, and can not run, the problem I wasted a few hours last night, then do a good job, now tell you how to solve: The download of the JDK file name, and the extension to change. EXE can be installed, the download of the documentation file also change the name, the extension to the name. ZIP, and then unzip it so that the first step is OK.



2, of course, need a good IDE tool, recommend now the most fire Eclipse

Download Address: http://www.eclipse.org/downloads/index.php

After downloading after the decompression directly can be used, do not need to install, welcome interface is cool, as shown:



The system path also needs to be set as follows: Select Window-〉preferences in the menu as shown:



In the pop-up dialog box, find java-〉installed JREs, then click the Add button, configure the path you installed on your JDK and documentation, and then click OK. So the second step is complete. As shown in figure:





You can familiarize yourself with this IDE first, then try to write a Hello world program, new projects, add Java files and Visula Studio, Delphi are similar, I believe this is difficult for you, the final effect is this way:




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.