Play eclipse3-dubug, pour jar packs, rewind items, install Plug-ins, and considerations

Source: Internet
Author: User
Tags parent directory rewind win32

Please respect other people's labor achievements, reprint please indicate: Http://blog.csdn.net/tianyazaiheruan

One: Debug Debug Statements

Please respect other people's labor achievements, reprint please indicate: Http://blog.csdn.net/tianyazaiheruan

Debug is used to debug statements, used to be output statements to debug it, but also to use the handwriting to delete, is not quite trouble ah, now use the Debug debug in Eclipse

1. Debug must interrupt the point in the code, the breakpoint is equivalent to the position of the output statement, after setting a breakpoint, run the program with debug to stop after the breakpoint. How to break points. Edit window Left line number double-click the ball that appears.

2. The role of the Dubug view: One is to view the changes in data (properties), and the other is to view the source code of the method, property.

3. In the main function, the Java virtual machine passes inside the parameter is a string array, and the initial value is the 0,arrays.tostring () method can be directly to the array into a string, jump to the end of the program can also jump one level, is the exit () method, This is because the main method itself is a main thread, the end of which is the empty space at the end of the program, and the Java virtual machine hides an exit method. StringBuilder B = Newstringbuilder (); This line of code is used to convert an array to a string.

second, the JAR package import Export

Please respect other people's labor achievements, reprint please indicate: Http://blog.csdn.net/tianyazaiheruan

Exporting: Right Key item-"Export"->java->jar file (select the entire project to pack the whole item, to package a class, open the project open)

Import:

Here is an import with the first absolute path (not recommended in the actual project)

1 Right Key item-"BuildPath (build Path)-" Confgure buildpath (Configuration Build path)-"Java BuildPath (Java build path)-" Libraries (class library)

2 Right Key item-"Properties"-"Java Build path (Java building Path)-" Libraries (class library) can not be added by clicking Add JARs (Add Jar package), which is added to the current work range ; To choose Add External JARs (add external jar package)

Inverted package for relative path: (recommended)

Create a new folder of your own, name yourself (recommended in Java suggested format Lib): And then copy the package to be imported into this folder. Then 1) Right-click the Jar Pack-"Build Path"-"Add to" build path (added to building path);2) Right-click the Jar Pack-"Confgure Build Path"-" Java build path (Java building paths)-Libraries (class library) (recommended first, convenient, comfortable)

You can also right-click the jar package that was imported by the Jar package removal (removefrom build path) (or remove from configuration options).

the difference between PACKAGEEXPL (Package Explorer window) and Navigator (navigation window) :

Package Explorer window to view the package directory and source files; Navigation window to view the items on the hard disk all the directory level, you can see the bin file (Package Explorer can not), but can not rewind (that is, no build path this option)

iii.. Import Project

Please respect other people's labor achievements, reprint please indicate: Http://blog.csdn.net/tianyazaiheruan

Package Explorer Right-click Blank-"Import"->general (General)-"existingprojects into Workspace (existing project to work interval)-" browse (Browse)

Toggle Work Interval:file-Switch Workspace (toggle work interval); Eclipse automatically restarts after switching

Iv. Other, plug-in installation

If you're using Eclipse in English, but you want to download a Chinese-language package (to download the corresponding version) in Chinese on the official website of Eclipse, an eclipse plugin

Eclipse has a features (feature) file and plugins (plug-in) file, these two files are designed to put plug-ins, you can unzip the file (there is also an eclipse file, The eclipse files are also features (feature) files and plugins (plug-in) files that are imported directly into the eclipse Root and merged with the two files in eclipse; but there is a drawback, uninstall plug-in is not good to uninstall, because there are a lot of plug-ins;

When you place the plug-in, it is best to create a folder in the Ecilpse directory, such as links, a new txt text inside, can be called CN representative of Chinese Chinese. File extension random, some people directly with a. txt for easy to open, and some people use. link in order to correspond to its parent directory links, this personal habit, there is not much demand; what does it say? The path of the parent directory where the Eclipse directory in the Path= plug-in package resides (the storage path). If you are directly copied in the path to be modified, for example: Copy in the D:\eclipse\Nlpack1-eclipse-SDK-3.2-win32 will be changed to: d:\\eclipse\\ Nlpack1-eclipse-sdk-3.2-win32 is the double slash in the Java package. After you finish these steps, OH. The success of Chinese translation;

After you finish, you want to see how successful it is. Open your Eclipse file directory. eclipse-"Configuration->org.eclipse.update under the Platform.xml (platform) All plug-in configuration information is here.

What if you want to install multiple plug-ins? Everyone here should pay attention to it. Do not configure multiple paths in that txt folder. But to build multiple TXT files to configure the path separately

Do not recommend the Chinese, the old play Chinese will not understand other people in English, it is recommended to use

Please respect the achievements of other people's labor, reprint please indicate: Http://blog.csdn.net/tianyazaiheruan

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.