From: http://www.cnblogs.com/wuhenke/archive/2011/06/22/2087134.html
Core Tip: Check the source code of the JDK class library in eclipse !!! Settings: 1. click window-preferences-Java-installed jres 2. at this time, the right side of installed jres is the List Pane, listing the system's JRE environment. Select Your JRE and click Edit ..., A window (edit JRE) 3 ap
software or Control Panel add remove Program
2. Java Development Tools (HelloWorld case in Eclipse and Chinese)
A: Select the working space
The workspace is actually the directory where we write the source code.
B: Use Eclipse to complete a HelloWorld case
Code with project as base unit
Create a project
As we iterate through the project, we often enable certain features or modify some of the interface's problems, so the problem is that there is a lot of redundancy. java files, redundant resource files, some redundant interface files, etc. So if the problem arises, then how to solve it, this is the focus of today to solve the problem?FirstEclipse has a plugin to check for redundant Java files called Ucdetec
day 14th Object-oriented
today's content introduction
U Eclipse common shortcut key operations
U Eclipse document Annotation Export help document
Jar package export and use jar package for the U Eclipse Project
U mixed use details with different modifiers
U discriminate when to define variables as member variables
U class
the user. It also assumes that you have a file c: \ temp \ test.txt which will be attached to the email.
Package de. vogella. microsoft. outlook. handler; import Java. io. file; import Org. eclipse. core. commands. export acthandler; import Org. eclipse. core. commands. executionevent; import Org. eclipse. core. comm
, in eclipse, we can clearly view the inheritance relationships of classes.
In Java, there is also a class (note that it is in lower case ). He is one by one (anti-theft connection: This article first from the http://www.cnblogs.com/jilodream/) object, that is, a class. Objects are one of these objects. At the same tim
Sometimes Eclipse will be insane, and project will not compile, and even Hello world will not find or load the main class (Exception in Thread "main" Java.lang.NoClassDefFo UNDERROR:XXX)"error, I have met several times, was not bothered to delve directly into the project, but encountered a number of times must go deep down, and now summarize several solutions, we can try each one according to their own situ
Need to download Jad and install1, the download to the Jad Anti-compilation tool decompression, the resulting jad.exe placed in a directory of the system, such as C:/java/jre1.5.0_07/bin; (location can be placed casually, later configuration to use, recommended to put in the Java directory)2, the download to the Jadclipse compressed package Net.sf.jadclipse_3.3.0.jar (corresponding to the version you just d
:/infotailserver/JS
Then I thought that I accidentally created the wrong folder yesterday and deleted it immediately. Is this the reason? I guess eclipse must be in that file.
This information is recorded. So all files are displayed in the project, and an uncommitted file with an asterisk is displayed:. classpath.
You don't have to ask. Most of them are him. In the second line, the following sentence appears:
The source file is as follows:
...
Then
, you can Install it. Click the "Install" button:
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // response); ">
After installation, go to/home/shixinyu/JAVA/eclipse and double-click eclipse to automatically identify
When you start the project today, and you encounter a situation where the main class cannot be found or cannot be loaded, the project cannot be compiled after it is cleared. Class file does not have a. class file, at least 3 times this problem occurs, and every time the solution is not the same, the problem is marked with a red or exclamation mark on the project,
How to quickly view the class source code in the jar package in Eclipse, eclipsejar
When we check the jar source code, we usually install a jd-gui, copy the jar, open the jar from the jd-gui, and then view the source code. This process is troublesome, of course, the quick view method described in this article does not have any high-tech means. It just integrates jd-gui into
Interfaces can inherit Interfaces. Abstract classes can implement (implements) interfaces, and abstract classes can inherit concrete Classes. There can be static main methods in an abstract class.Q: Does an abstract class inherit entity classes (concrete Class)A: An abstract class can inherit an entity class, but only
Elipse debugging function Presumably everyone is already familiar with, although through JDB can achieve the same goal, but the visual debugging tools will greatly improve the efficiency of everyone. Debugging a generic application through eclipse or debugging a server-based program is easy, and clicking the Debug button after setting the breakpoint is OK. Today to introduce how to pass Eclipse+jad to the s
. click the "Install" button:
After installation, go to/home/shixinyu/JAVA/eclipse and double-click eclipse to automatically identify MyEclipse. do you want to create a menu in "application?
Run the following command on the terminal:
$ Sudo gedit/usr/share/applications/Eclipse. desktop
Copy and paste the following cont
Core Tip: Check the source code of the JDK class library in eclipse !!! Settings: 1. click window-preferences-Java-installed jres 2. at this time, the right side of installed jres is the List Pane, listing the system's JRE environment. Select Your JRE and click Edit ..., A window (edit JRE) 3 appears. select RT. JAR File
View the source code of the JDK
Open Window->preferences->java->code Style->code Templates
Click "Import" to import the template Codetemplates.xml file.
The Codetemplates.xml content is our own predefined, not described here first, we can see the Eclipse code templates interface between the Configure generated code and The Comments area contains two menu trees: Comment, Code, as shown in the following illustration:
The comments represen
Plugin download, installation and configuration in Eclipse can refer to my other article: MyEclipse anti-compile class fileThe following highlights how to use Jad to decompile1. In the DOS window, to the directory where class is located, run >jad Db.class directly, and the Db.jad file will be generated in that directory. Run >jad-sjava Db.class, the Db.java file
I import the jar into eclipse through the User libranry of Eclipse, compile no problem, run when the class file is not defined, and later on the online search, the reason to find, is this:with the Java build path to import the package and copy the package to the Lib there is a difference , it does not conflict, it does
jar Package Issues :1. The source attachment for a jar package in libraries in the Java Build path of the project refers to a jar package that is not available,The workaround is to remove the unusable jar package.2. The project's Java Build Path has a jar package that is not available in libraries, showing a red fork. This indicates that the system could not find this jar file.Workaround: Remove the jar.3.e
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.