Eclipse plug-in installation method

There are two ways to install the Eclipse plug-in
There are two ways to install Eclipse plug-ins

: 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, as long as Just copy the plugin to this directory. For example, I have a weblogic plug-in (which can be downloaded from the bea site). After unzipping, I get a directory: [com.bea.eclipse.weblogic_1.1.1], I will 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 (plug-in name and version number), Then put the jar file in this directory. For example, the directory of the vss plug-in 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.
 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325849627&siteId=291194637