The common execution method of java code (2)-use eclipse to develop software

How does java code run in eclipse?

1. First we double-click eclipse
turn on
2. Specify the workspace, the default one is just fine, then [Launch]
and
3. Create a java project: you can directly click Create a java project on the left, or [File]-[New]-[Java Project]
ss
4. Type the project name, type Test, and then [Finish]
Sand water
5. Select [No]
dd
6. Then click [Test], under [src] [New], create a package [Package]
gg
7. Give Package Name, and then [Finish]
gg
8. Right-click [New]-[Class] under the package name [heshaohai]
Hurry up
9. The name usually starts with a capital letter, type the class name [Abc]
Cheng Jiajia
10. Generate the [class name.java] file, Such as [Abc.java]
nj
11. Type the following sample code
match
12. Finally run [Run], the console will output the code running results: I Like Java
Insert picture description here
13. In this way we completed the java code in the eclipse software, The error message will be displayed in red and can be checked and debugged at any time on the same interface. It is an essential software for java developers. If there are no steps, leave a message below.

Published 8 original articles · won 52 · views 300

Guess you like

Origin blog.csdn.net/qq_45111873/article/details/105151970