Four methods of eclipse plug-in installation

Eclipse plug-in installation method

1. There is a plugins directory in the main directory of eclipse (ECLIPSE_HOME, for example, the directory installed on my machine is: D:\eclipse). This method of plug-in installation is very simple, just copy the plug-in. Just go to this directory. For example, I have a weblogic plug-in (which can be downloaded from the bea site). After decompressing it, I get a directory: [com.bea.eclipse.weblogic_1.1.1], I put this directory directly in the %ECLIPSE_HOME%\plugins directory , after restarting eclipse, you will see the menu of Run->“Start Weblogic”. After installation, the full path of the weblogic plugin is: D:\eclipse\plugins\com.bea.eclipse.weblogic_1.1.1]

2. Create a links directory under the eclipse directory (ECLIPSE_HOME), and then put your own plugin in your Anywhere you want to put it. At this time, the directory where you put the plugin is called the plugin directory (PLUGIN_HOME), and then create a link file in your %ECLIPSE_HOME%\links\ directory. For example, if I want to install a vss plugin, I will Created in my links directory: VSS_1.6.1.link file. And this VSS_1.6.1.link file points to my plug-in directory (PLUGIN_HOME, for example, the plug-in directory on my machine is D:\eclipse\plugins_new). The content of the VSS_1.6.1.link file is:

path=D:\\JavaDev\\plugins\\vssplugin_1.6.1

The second is to pay attention to when installing the plug-in. If you are a separate jar file, it is best to create a directory of this level in the directory specified by the link file: eclipse\plugins\xxx.xxx (plugin name and version number), Then put the jar file in this directory. For example, the directory of the vss plugin on my machine is D:\eclipse \plugins_new\vssplugin_1.6.1\eclipse\plugins\org.vssplugin_1.6.1, and there is a file under it: vssplugin.jar The

two methods of plug-ins need to be restarted after installation eclipse to see the plugin. If a plugin has been installed and you want to reinstall it, just replace the file or modify the path of the link file. If you find that the plug-in is not recognized, it may be that your plug-in does not support your current eclipse version, please check. It may also be caused by the system configuration. I have appeared once. My solution is to delete all files in the configuration directory under ECLIPSE_HOME, leaving the config.ini file.



The second extension method (more easy to use): the usage of the Eclipse plugin using the links directory

Assuming that the plugin is installed in the d:\myplugin directory, the directory structure of myplugin must be like this:
d:\\myplugin\\eclipse\ \plugins\\plugins and d:\\myplugin\\eclipse\\features\\plugins
For example , if the EclipseME plugin is installed in the d:\myplugin directory, the directory structure is

d:\\myplugin\\eclipse\\plugins\\eclipseme_0. 4.5.
Assuming that eclipse is installed in the d:\eclipse directory, create a directory named links in the eclipse directory, and create a link file in the links directory, such as myplugin.link, the content of the file is path=d:\\myplugin.
Start eclipse, the plug-in is installed, if you want not to start the plug-in temporarily, just delete the myplugin.link file.

Supplementary instructions:
1. Plug-ins can be installed in multiple custom directories.
2. A custom directory can install multiple plugins.
3. The file name and extension of the link file can be any name, such as myplugin.txt and goodplugin.
4. The link file can have multiple lines of path=plugin directory, corresponding to multiple custom plugin directories, and the path parameter of each line will take effect.
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 plugin directory can use a relative path. If we create the myplugin directory in the eclipse installation directory, such as the

d:\eclipse directory in the above example, we only need to set path=myplugin.

The third method: Select Help->Software Updates->Manager Configuration, select Add an Existing Location, and find the plugin to be installed.

Note: Method 1 and 2 come from:
http://blog.csdn.net/bear110/archive/2006/07/04/873667.aspx

Method 3 comes from:
http://blog.csdn.net/thebigforest/archive/2007/09/16/1787303.aspx

Fourth method:
    Select Help->Software Updates->Find and Install,
    then select Search for new features to install and click Next,
    select New Remote Site...
    Enter the plug-in name and update URL, which can be found online. For example: Install Maven: Enter     name
    in the New Update Site dialog : Maven     URL: http://m2eclipse.codehaus.org/update/      Click OK->Finish, select the plugin to install after the update, and finally it is completed.


Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326753162&siteId=291194637