As a result of learning javase, most of the time I used the editor is the Windows operating system comes with Notepad and downloaded from the Internet
The notepad++ editor is then compiled and run using the command-line tools, so you don't know much about Java's Eclipse development tools, and these two days are specifically
The use of Eclipse development tools and a lot of things you don't know about.
Always thought that Eclipse was developed specifically for the Java programming language IDE, and then went to the official website to download the installation package, found in addition to the Java coding
Other programming languages, such as c++,php, as long as you think of the programming language, you can basically use
Eclipse is developed, so a better definition of eclipse should be an open-source development platform.
Then I'll simply list some tips on how to develop the Java programming language in Eclipse.
an Eclipse installation attention issue (1) Working space (Workspace) settings
When we install the Eclipse development tool or unzip the install-free version of Eclipse, the first time it opens, it pops up a Workspace Launcher
The dialog window, which is let us select a workspace (choose a workspace), we generally do not use the default workspace, self-set to self-
The path you want to store.
(Workspace) Workspace is the default location for project storage, associating relevant settings information with it, and changing the workspace
The corresponding configuration information, each workspace has its own relevant folders and configuration files.
We can also use File->switch workspace to switch workspaces, and we'll change the location of the workspace to:
E:\Java\JavaEE\Demo. If you want to configure the copy workspace, you only need to tick the two check boxes below, if you want to work
The reconfiguration of the space is also possible, and a new configuration file is generated.
(2) work desk (Workbench)
Workbench (Workbench) refers to a desktop development environment that provides a range of tools for manipulating, managing, and navigating resources in the workspace. Each workbench Package
containing one or more Vista (perspective). Let's take a look at the initialized table and we'll make the relevant configuration and changes later.
two eclipse basic settings (1) Introduction to the Eclipse interface
The initialization interface and other developments of the eclipse development tools are not particularly significant changes and differences, but also include the title bar, menu bar,
toolbars and The default Vista and view, which we have seen on the workbench above.
(2) Appearance style setting
Eclipse offers a variety of skin styles to choose from.
We can do this: window->preferences, in theme we generally choose the default winodows theme, put color other settings
We'll keep it by default. The theme we chose below is the dark theme, which may be liked by some, but I prefer the default theme.
(3) setting of character encoding set
When we develop a project, we need to specify a character encoding set in advance, and we recommend using UTF-8. The default for Eclipse is GBK encoding.
Let's do this:window->preferences->general->workspace, find the bottom text file encoding to set the character
The encoding set.
(4) Font and font size settings
We do this: Window->preferences->general->appearance->colors and Fonts->text Font, then select Edit
Select pop-Up Font Settings dialog box, I choose the font is Microsoft Ya Black, the font size is 16th number. Effect we can finish setting the editor background color after
You can see the font and font size.
And then
(5) Setting of editor background color
Let's do this: Window->preferences->general->editors->text Editor, find the appearance color options below
in the background color, remove the default setting of the tick, and then select the color, the Color dialog box appears, we make a custom color, Adjust the Hue
Into: 85 saturation adjustment: 123 brightness adjustment to 205, can be adjusted into red bean paste green and then click OK, the last application can be.
(6) configuration of the JRE
When we first configured the Java development environment, installing the JDK and installing the JRE, the version of the JRE would have different effects on Java support.
Eclipse has a default JRE, and of course we can configure other JRE as well.
We do this: window->preferences->java->installed JREs. We can select the JRE from different JDK versions, or you can add
Add another version of the JRE, which is no longer shown here, using the default.
Currently, there is only one JRE in my system, and it must be the JRE in the JDK we installed. If there are other JDK versions, we can
Add JRE.
(7) Compile-level settings
Now that we can change the Kre, we can adjust the compilation level of the Java project, and the latest version of Eclipse support is JDK1.8. such as a
A method of a class is only useful after JDK1.5. Then JDK1.5 would have compiled an error before.
Go to Eclipse Development tools (i)