How to install plug-ins in eclipse

Source: Internet
Author: User

The first method is very simple. There is a plugins directory and features directory under the eclipse main directory (% eclipse_home %. After extracting the plug-in, you can see the plugins folder in the decompressed folder. Some plug-ins can also see a features folder after decompression. Generally, copy the content in the plugins folder to the % eclipse_home % \ plugins directory. If the decompressed plug-in directory contains the features folder, copy the content in this folder to % eclipse_home % \ features. After restarting eclipse, you can use the plug-in you just installed. If you cannot use the plug-in, it may be because the plug-in has not been enabled. You can go to help/software
Under updates/manage configuration, set "Disable" plug-in to "enable. This plug-in installation method is simple and fast, but it has some defects. If there are too many plug-ins, the content will be very confusing, and you cannot tell which is the built-in system and which is to be installed later. After many plug-ins are installed, eclipse becomes very large, making it difficult to update and manage many plug-ins. Every time you reinstall eclipse, it takes time to install those commonly used plug-ins.

The second method is also very simple. It mainly uses the eclipse Wizard to install the plug-in. Use help/software updates/find and install to select search for new features to install from the pop-up menu, and click "Next ", select "new local site" or "New archived site" in the next menu, find the directory where the plug-in you downloaded resides, and select "Install. This method is relatively safe to install plug-ins and is not prone to errors. The disadvantage is that the plug-ins are demanding, so there are fewer plug-ins that support this method. Generally, the plug-in directory must contain not only the plugins and features folders, but also the site. XML file (site. XML is a configuration file for automatic installation. eclipse will automatically install the plug-in based on the file information ). The eclipseme plug-in that supports the development of J2EE is installed in this way.

The third method is to create a links directory under the eclipse main directory and put your plug-in wherever you want to put it, at this time, the directory where you put the plug-in is the plug-in directory (% plugin_home %), and then create a link file under your % eclipse_home % \ links \ directory, for example, to install a VSS plug-in, you can create a VSS in the links directory. eclipse. link file. This VSS. Eclipse. Link file points to the directory where the VSS plug-in is stored (% plugin_home % ). Assume that your VSS plug-in zip/rarfile is decompressed and placed in c: \ eclipse_plugins \ VSS. in eclipse (if the plug-in is a jar file, you do not need to decompress it), then VSS. eclipse. link file content should be: Path = C :\\ eclipse_plugins \ VSS. eclipse. Note: A "\" escape character must be added to separate the file paths indicated by path. You must pay attention to installing the plug-in this way. That is, the eclipse directory must be under the plug-in directory, and then the features and plugins must be created under the eclipse directory respectively. For example, extract vss.eclipse.zip to the VSS. Eclipse Directory, which contains a subdirectory of plugins. Create a new subdirectory eclipse in the VSS. Eclipse directory, and then move the Plugins directory to the newly created eclipse
Directory, and then create a features directory under the newly created eclipse directory. That is, the directory structure is as follows: C: \ eclipse_plugins \ VSS. Eclipse \ eclipse \ plugins,
C: \ eclipse_plugins \ VSS. Eclipse \ eclipse \ features. If the other compressed files already contain the eclipse \ plugins and eclipse \ features directories, you do not need to create an eclipse directory structure. After eclipse is started, eclipse will go to the directory specified by the link file to find the eclipse \ features directory and eclipse \ plugins directory to see if there are legal functional components and plug-ins. That is to say, the target directory must contain a \ eclipse directory. If the attached feature and plug-in are found, the configuration will be available during the runtime. If the linked file is added after the workspace is created, the additional feature and plug-in will be processed as new configuration changes.
Description of the third method:
1. Plug-ins can be installed in multiple custom directories;
2. Multiple plug-ins can be installed in a custom directory;
3. The file name and extension name of The Link file can be any name, such as ddd.txt and myplugin;
4. The path in the Link file = plug-in directory must be separated by "\" or "/".
5. There can also be multiple link files in the links directory, and the path parameter in each link file will take effect;
6. The plug-in directory can use relative paths;
7. You can create a sub-directory, such as disable, In the links directory to transfer unused plug-ins to this sub-directory to speed up eclipse startup;
8. problems may occur when editing EJB when installing the lomboz plug-in using links. The advantage of this method is that plug-ins can be managed in different categories. If a plug-in has been installed and you want to reinstall it, you only need to replace the file or modify the link file path. When you reinstall eclipse, you only need to copy the original eclipse links directory to the new eclipse directory, and then copy the plug-in directory to the new eclipse directory. Then start in-clean mode and complete the installation. The commonly used J2EE development tool-myeclipse organizes plug-ins in this way. Together for eclipse is also a typical installation using links.

Generally, after installing the plug-in the preceding three methods, you need to restart eclipse to make the plug-in take effect. If it does not take effect, follow these steps:
1. First, let's take a look at the plugin loading list in about. If not, first confirm that the dependent plug-in of the installed plug-in has been installed. Eclipse plug-ins are dependent on each plug-in. in the <requires> tag in XML, each <import> tag indicates the dependent plug-in. Eclipse loads the plug-in one by one based on the plug-in dependency at startup, if no plug-in is available, the installed plug-in may not run properly;

2. if you have installed the plugin list, it may be because you have not enabled the view of this plug-in or you need to configure something in preference to make it effective. You 'd better take a look at the plug-in installed. XML to see which extensions are added. The menu is nothing more than the extension of actionsets. The interface is the extension of views. You can set it in show view, and there are other extension points, you can analyze specific issues;

3. The most effective method is to view logs. In the eclipse installation directory workspace /. in the metadata subdirectory (if no default workspace is used, the directory structure may be different. log File, from which you can find the cause of failure;

4. If the plug-in is still not installed, delete the org. Eclipse. Update directory under the configuration subdirectory of the eclipse installation directory and restart. The third method is recommended for individuals.

Related Article

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.