Today looked at their own blog article, the content is more miscellaneous, there are a lot of technology, there are many languages, have not highlighted their strengths, can say, from the blog, I do not see what is the block. Plus today was awarded a blog quasi-Expert medal, think about it, or to comb their own knowledge points, in fact, I do Java development, the current position is the Java Advanced Development Project Division.
Today, the Java IDE artifact--eclipse.
1,: http://www.eclipse.org/downloads/premise is that you want to install a good jdk, take a photo http://blog.csdn.net/enson16855/article/details/25967851
Assuming it's Linux, take the photo http://blog.csdn.net/enson16855/article/details/8708574
Download the Java EE version number, followed by the operating system information, assuming you are Linux, the following should appear the Linux version number: Download the corresponding version number according to your system information, my side is the Windows 64-bit system.
2, extract to the specified directory, double-click Eclipse.exe Open it can
On the chart, it is my own operating habits, it is recommended to participate in my view settings, so as to facilitate development.
Describe the Red box section:
Java--> represents the current Java development view, next to There is a Java EE view, next to the button, you can select the corresponding view
Console--> indicates that the console, for example, the output information of the program, etc., will be displayed in the console
Package: --that is, the information for the project package
Outline--> represents the list of methods, packages, attributes, and so on for the classes that are currently being manipulated, which is very often used in real-world development.
3. New HelloWorld Program:
First, create a new project, Java Project, right-click New in the Package Explorer, select Java Project
Description: Project name represents your project names
....location--> indicates that your project is saved in a folder on disk, so you can use the default
Jre--> Choose your Java version number, the general default is yes, my side of the computer is installed JDK7
Other information needs no attention ...
The project will appear in your Package explorer and be able to expand
The JRE library represents the Java Development library.
4. Creating Java Classes
Right-click on src and select class to:
Explain:
Source Folder--> represents the directory
Package--> the package inside the corresponding Java program
Name--> represents the name of the class, usually capitalized, and named after the hump.
Modifiers--> represents access control permissions for Java, which is now set to public, perhaps in explanation. Abstract indicates that idle, static, and final represent the end, which is actually the knowledge point of the corresponding Java
Superclass--> Parent class, this can be selected, the general default is Java.lang.Object,Java, whatever a class is a subclass of object .
Interface--> the corresponding Java interface
And the few hooks, main indicates whether to add main main method to the class
Constractor represents a construction method
Abstract method represents an abstraction of a way to implement ....
5. Next, you can write your own program.
package me.javen.helloworld;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
Right-click Run as--> java application
You can see the output information on the console:
6. Setting
Suppose that the font of the program is a little bit small, this is able to set the.
Eclipse Menu Bar,window--> preference
The font size I set here is 12.
It looks a little more comfortable, huh?
Today, the simple use of Eclipse is introduced here ....
"Small white Java Growth series"--java IDE development tools Eclipse operations