Common configuration diagrams of MyEclipse and myeclipse
MyEclipse has many functions, but we often use not a lot of functions. Here we will record some useful tips as a memorandum, at the same time, I also hope to help others. This article mainly records some useful setup techniques, such as creating a project, creating a class, and setting a workspace.
Working set)
The working group mainly displays the relevant types of projects in the project management bar on the left, but does not display other irrelevant projects. This avoids listing too many projects in the project management bar, reduce interference between projects and classify projects in the workspace.
If no
2. Create a working group
On the "select workgroup" page, you can see the "new" button.
3. edit a Working Group
2. Set the default workspace Encoding
In Java programming, encoding is generally used UTF-8, but MyEclipse general default encoding according to the operating system language environment determined, we need to manually specify the default encoding format of the workspace.
In window --> preferences:
3. Default Open Mode
For many format files, we generally want to open them in a specific way. For example, for html files, we generally want to open them in MyEclipse using the source code. The following describes how to set the default file opening mode.
In window --> preferences:
XML Recommended Configuration:
Recommended HTML Configuration:
Recommended JSP settings:
4. Right-click the "new" shortcut
When we right-click to create a project or file, there are a lot of options that we almost don't need, so there is no need to put them in the shortcut menu; and some options are often used, however, if there is any shortcut menu in the right-click menu, we always need to select other items in the pop-up dialog box. These operations are inconvenient. The following describes how to set the shortcut menu.
In window --> Customize Perspective, switch to the Shortcuts tab:
For Java Web development, we recommend that you keep the following settings:
1. General (File, Folder)
2. Java (Class, Enum, Interface, Java Project, Package, Source Folder)
3. MyEclipse/Java Enterprise Project (Web Project)
4. MyEclipse/Web (HTML, JSP, Servlet)
5. MyEclipse/XML (DTD, XML Basic, XML Schema)
Suggestions: When the modification is made again, the last Web and XML options will be removed. Otherwise, the modification will be repeated with the previous "suggested retention Settings" 4 and 5.
Five associated source code
Right-click the project to be associated with the source code:
Note:
The associated file refers to the compressed file where the source code file is located.
The associated directory refers to the directory where the source code file is located.
It is meaningless to associate the jar file.
Set JavaDoc comments
We often need to make compliant comments to our Java code, but many comments are similar. We can set some templates and introduce them below.
In window --> preferences:
7. Modify the JSP page Text Content Encoding
In window --> preferences:
8. Install plug-ins
There are three main ways to install the plug-in: Install the plug-in online, decompress and install the plug-in, and create a link file.
Note: Both the 2 and 3 methods download the plug-in to be installed to the local device for installation. Be sure that the version of the downloaded plug-in must be compatible with the version of MyEclipse, we recommend that you download a version of the plug-in before the MyEclipse date, which is generally compatible.
Welcome to reprint, reprint Please note: http://www.cnblogs.com/noah-wung/p/3965521.html
Personal public account:ProgrammlifeIf you are interested, please pay attention to the following QR code:
How to install and configure MyEclipse60
Download myeclipse6(myeclipse_6.0.1ga_e3.3.20.fullstackinstaller.exe)
1. Download myeclipse 6.0.1 AllInOne at www.myeclipseide.com/. the installation package integrates the automatic installation packages of JRE5, Eclipse3.3.1, and MyEclipse6.0.1GA (Windows only ).
2. The installation directory is C: J2EEMyEclipse.
3. MyEclipse 6.0.1 registration code:
Subscriber: administrator
Subtion Code: nLR7ZL-655342-54657656405281154
After registration:
Subscriber: administrator
Product ID: E2MY (MyEclipse Standard Subtion)
License version: 1.0
Full Maintenance supported DED
Subtion expiration date (YYYYMMDD): 20091021
Number of license: 897
Install j2sdk1.5(jdk-rj5_0_05-windows-i586-p.exe)
1. my installation directory is J2SDK in C: JAVAJ2SDK, J2SE in C: J2EEJ2SE, set the system variables (my computer (right-click)-> properties-> advanced-> environment variables ):
① (New) JAVA_HOME: C: JAVAJ2SDK
② (New) CLASSPATH:.; C: JAVAJ2SDKlibdt. jar; C: JAVAJ2SDKlibtools. jar (note: the node number cannot be omitted, indicating the current directory)
③ Edit the variable value of PATH, and add % JAVA_HOME % bin (Note: Separate them with semicolons)
2. Now, J2SDK installation is complete. Run the following command to test java-version:
3. Configure J2SDK in Eclipse
① Click Window> Preferences> Java> nstalledJREs, click Add, set JREName to J2SDK, set JRE homedirectory to C: J2EEJ2SDK, and click OK.
Install Tomcat 5(jakarta-tomcat-5.5.25.rar)
1. MyEclipse 6.0.1 All In One comes with a Tomcat 6 by default, but installing an independent version is more helpful for learning.
2. I use jakarta-tomcat-5.5.25.rar. The installation directory is C: J2EETomcat.
3. Configure TOMCAT in Eclipse
① Click Window> Preferences> MyEclipse> Servers> Tomcat> Tomcat5.x and set Tomcatserver to Enable.
C: J2EETomcat, C: J2EETomcat, and C: J2EETomcattemp. Just apply them.
② Click Window-> Preferences-> MyEclipse-> Serv ...... the remaining full text>
How to set the following shortcut keys in Myeclipse
Debugging shortcuts
1. [Ctrl + Shift + B]: Set a breakpoint or cancel a breakpoint in the current row.
2. [F11]: debug the program that was last executed.
3. [Ctrl + F11]: run the program that was last executed.
4. [F5]: trace the method. When the program executes a method, press [F5] to track the method.
5. [F6]: One-step execution program.
6. [F7]: After the method is executed, the last statement that calls this method is returned.
7. [F8]: continue to run until the next breakpoint or program ends.