There is no nonsense: starting from 0 to develop himself BS framework - 2

zhaozj2021-02-16  55

Second: Integrated Development Platform ECLIPE

Serious warning: People who have used Eclipe should not look down

Open white: I saw the example above, I didn't think it was a bit disappointing. How, I am in a hurry to write code? Then I will find a development platform first. Come to Down An Eclipe first, free things, is IBM, it is a good Java development platform. Here, I just want to spend a little time to introduce you.

Start:

Suppose your Eclipe is installed in D: /Eclipse2.1. Will you see Eclipse.exe and Folder Workspace? Run your Eclipse.exe. Let's start with it!

File-new-propject

In the dialog that appears, check "java" on the left, check "Java Project" on the right

NEXT

Enter your Project Name. Just called myTWO? !

Finish

FILE-New-Class

Enter Name. Just called MyfirstClass.

Finish

Oh, you saw it

Public class myfirstclass {

}

Still do you, write any code you want to write in the middle of {}.

What, do you don't know the Java and object-oriented? Oops, you are really pitiful, in the first one, you don't know HTML at all, I have forgive you, now I don't help you. Hurry up and take a look at it.

Is it a little basic brother, is it a unique moment to MAIN? Ok, let you use Min.

Public class myfirstclass

{

Public static void main (string args [])

{

System.out.println ("I am afraid that I will meet with my main: (");

}

}

Run:

Run-Run As-2 Java Application

Did you see the result?

Ok, I still remember what I said in front and told you to see the folder Workspace. What completely, I don't pay attention to this stuff, you, you, I have already said, in order to live up to my title, how can I see the folder Workspace for no reason, she is still not beautiful.

Under Workspace, tell me what you see, others don't say, at least you see the folder mytwo, go to see, OH, there are two files myfirstclass.java and myfirstclass.class. . What are they doing, but I want to say it? As for .project and. Classpath, what do you do? It is not your ass, it should be the engineering file generated by Eclipe.

Senior point:

The above example, did you find uncomfortable places during the process? What, no? You really have failed, don't you find that your myfirstclass.java and myfirstclass.class have not given you the annoying Workspace folder after your consent? This is exactly not democratic, no humanity. Let's take a look again.

File-new-propject

In the dialog that appears, check "java" on the left, check "Java Project" on the right

NEXT

Enter your Project Name. Just called myTWO? !

(!! Don't "finish" is not rude to a Eternal) See Project Contents: and Use default? Give me "√" in the small frame, OK, now

"Browse ..." Go in. Ok, I want to put your java files where it is, now you just want to put your myfirstclass.java on Mars, no one can take you.

(!! Don't "finish", don't rudely come to an Eenter)

Next (anything you take, Yes)

See a dialog

"Browse ..." Go in, oh, so bother, there is a dialog

"CREATE New Folder", God, I am alive, and jump out of a dialog.

Folder Name: Write a name, write one, 123 can be

Give me "√" in the small frame.

"Browse ..." Go in

Ok, now I decide where to put your myfirstclass.class. If you feel that you don't hate it, you will be on Pluto. I will not mind.

OK --- OK --- Finish

Ok, the project file is doing well, write your program, write it back (when saving, Eclipe will automatically compile your Java program).

Ha, I saw your myfirstclass.java on Mars.

Hey, actually met my MyfirstClass.class on Pluto.

This chapter is written in this chapter: I have finished writing this article. I feel that I have become the ancestral teacher of Sun Wukong in the "Westward Journey". The extent of Luo Wei can not only let the king of the Niu Deyu, but I can't breathe. . No way, who makes me "starting from 0" or "a little drop"? If you feel that "high-level little" is too much trouble, then you will

Find your .java and .class in Workspace, first CTRL C first Ctrl V to the place you need. .

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

New Post(0)