Download from JDK to HelloWorld debugging success

xiaoxiao2021-03-05  20

Article comes from java.com.cn:zhangtaocn

[Editor's Note]

Are you just a programming beginner? And I have already attracted to the charm of Java language for a long time? Are you intensely like entering the Java world, but feels no way?

Unlike a lot of articles, whenever you encounter such an initiator encountered a problem that is difficult, always introduce a book (these books are usually the "Bible" in the industry to bring these poor children. They have been ignored from the door of the programming of the temple that has just entered ...

The author of this article is another way. From the Java Development Kit (JDK), the author has been installed, and it has always been debugging a model of a classic example helloWorld writing and debugging. Step by step, I will give up the identity of "Java program design master". I personally extend myself for writing procedures and eating, bringing an initiator into the temple of Java programming.

However, if you are really a full-time beginner, I have been very helpful in this article, please don't be comfortable, or take the big head recommended by "prawns" and try to take some days. . The temple of the program is magnificent, there are many rooms, there is a throne in the middle, Java is no exception, whenever you finish a big head, and have a lot of cultivation (writing procedures), you can enter the next room This may take many years, but don't be afraid, no matter which room you are, you have your value. When you have finished all books, you will go to the final room, and after a few years of cultivation, you finally take the throne in the temple.

Is this terrible? No, you ask "Master", so no one is sitting on this throne, but some people have come to the front of the house. Despite your efforts!

[text]

Method for (WinXP / J2SDK1.4.1_03)

Step 1: Visit the JDK Environment Download URL

http://java.sun.com/j2se/1.4.1/download.html

Select Download J2SE V 1.4.1_03

Click on Windows (All Languages, Including English) to the far right side of Download.

Step 2: Fill your own brief information in the next page and click Yes, Submit button.

Step 3: Click the Accept button in the next page.

Step 4: Click the Download J2SDK-1_4_1_03-Windows-i586.exe link to download.

Step 5: Install the downloaded JDK (the default installation drive letter is C: /J2SDK1.4.1_03).

Note: No need to change the installation path

Step Six: Now the specific configuration environment is now

Right click on "My Computer", select "Properties", select "Advanced", click "Environment Variable", notice

"System Variable", click "New" three times, create a system variable each time (accountation case).

Variable name variable value pathc: /j2sdk1.4.1_03/binjava_homec: /j2sdk1.4.1_03classpathc: /j2sdk1.4.1_03/lib/tools.jar; c: /j2sdk1.4.1_03/jre/lib/rt.jar;

After the variable is created, click "OK" until the "Properties" window disappears. Step 7: Open "Notepad" and enter this code (pay attention to case)

Class HelloWorld

{

Public static void main (string args [])

{

System.out.println ("Hello World");

}

}

Step 8: Save files in HelloWorld.java to D: / Java

Note: Save addresses are free to choose, and the file name isbook.

Step Nine: Enter "Start" - "All Programs" - "Accessories" - "Command Tips"

Type Javac Enter, and then display the environmental test results after a few seconds, and the English characters are normal.

Step Ten: Replace the disc to the directory (D: / Java>) where the HelloWorld.java file is located.

Type Javac HelloWorld.java and then return to the file where the file is located (D: / Java>).

Type

Java HelloWorld is a few seconds after displaying Hello World

Step 10 Please pay attention to the case!

Datual is coming! our

Java is going to start!

P.S. I see that everyone is asking this question, and there is no unified reply, so the syndrome is tired.

The whole step process, I hope to help everyone!

转载请注明原文地址:https://www.9cbs.com/read-32558.html

New Post(0)