Various ways that Eclipse installs plug-ins

Source: Internet
Author: User
Tags php development environment



As one of the most popular open source Ides of the moment, one of Eclipse's great strengths is its myriad of great plugins. A good plug-in can greatly improve our productivity, learning how to install the Eclipse plugin is a compulsory course. The installation methods of the Eclipse plug-in are described below.



The Eclipse plugin's compression package generally has the following two forms


    1. *.zip compressed package form such as PHPEclipse plug-in, unzip the directory structure is generally
      phpeclipse
      | -features /
      | -plugins /
      |-* (This is not important)
      
    2. Java package form of *.jar


To demonstrate how to install, 2 Eclipse plugins are recommended


    1. phpeclipse, used to let Eclipse support PHP development environment, *.zip form
    2. easyplorer, used to let eclipse directly open the server folder where the project is located, very convenient Oh, *.jar form below we use%eclipse_home% to represent the installation directory of Eclipse, For example, the installation directory for Eclipse is D:\tool\eclipse, which means that the%eclipse_home% mentioned in the article refers to the installation directory of Eclipse D:\tool\eclipse


The Eclipse plug-in is installed in roughly the following ways, choosing an installation:


The first type: Direct Copy method


As the name implies, the direct copy method is directly to copy the plugin to eclipse corresponding folder, is not very convenient AH. Unzip the PHPEclipse folder you downloaded, open the PHPEclipse folder, and say that the features and plugins files are copied to the features and plugins under the corresponding folder under Eclipse, respectively. Easyplorer plug-ins, just put the jar package into the plugins, and then restart Eclipse. This method is good, but not easy to manage Oh, if more and more plug-ins in the future, you will not be how to delete the original plug-in.


Note : After extracting the plug-in package directly into the plugins folder, restarting Eclipse may not load the new plugin.

The solutions on the Web are:

1. Open the command line to the current Eclipse directory, enter Eclipse-clean, and restart Eclipse, so eclipse will add a new plugin.

2, if the plug-in can not be upgraded, then please delete the Eclipse\configuration\org.eclipse.update directory before starting eclipse:)

You can see the newly installed plugins in the Eclipse menu "Help" and "About Eclipse SDK"--"Feature details" and "plug-in details".

The second type: Using the link file method


Eclipse another way, it checks if there is a links folder under the Eclipse directory, and there are no files (this file has no special requirements for filename and extension, can *.link, *.txt, or file without extension), if so, Load the Eclipse plug-in on the path in the file.



Step one: Plan to install the plug-in directory



Planning a directory on your computer dedicated to storing Eclipse plugins is recommended for the Eclipse directory, which makes it easy to migrate copies later because Eclipse is green. Free-to-install, random copy. Here we plan a directory dedicated to our own favorite plugins. Here the file name can be casually up, my plugin directory is called Myplugins


%eclipse_home%\myplugins


Step two: Unzip the plugin to Myplugins


    1. The directory structure of the Phpelcipse plugin after decompression is
      myplugins/
          |-phpeclipse/
              |-eclipse/
                  |-plugins/
                  |-features/

      Note : Here you see a folder called Eclipse No, all the files are put in eclipse.


2. Easyplorer plugin Because there is only one jar package, his directory structure is


myplugins/
    |-easyplorer/
        |-eclipse/
            |-plugins/
            	|-*.jar

Note : If there is only one jar package, just create a new plugins and put it under plugins.


Step Three: Configure the link file






Two ways to set up the link file


    1. Each plugin corresponds to a link file, such as Phpeclipse.link, Easyplorer.link
    2. All plugins are put into a link file, only one file is called Myplugins.link two ways of file names and extensions can be casually named. Write in the link file


Phpeclipse.link


Path=myplugins\\phpeclipse


Easyexplorer.link


Path=myplugins\\easyplorer


or write in Myplugins.link


Path=myplugins\\easyplorerpath=myplugins\\phpeclipse

Note: Even if this is the case:
##### #1. If the relative path is used, it is relative eclipse.exe relative path, also can use absolute path.
##### #如: Path=d:/software/eclipseee/myplugins/jadclipse, or Path=d:\\software\\eclipseee\\myplugins\\jadclipse
##### #2. The file name extension is not fixed. The file name extension, if available, for. txt.
##### #path =myplugins\\jadclipse
will also be loaded. It is not always required to follow shelf to be loaded into the plugin.


Here the format is the path= plug-in path, this kind of writing is relative path, relative to the path of Eclipse.ext, of course, can also use absolute path, if your plug-in storage path is not under Eclipse, for example, you put the plugin in the D:\soft\eclipse_ Plugins under



The writing is path=d:\\soft\\eclipse_plugins\\easyplorer two \ \ is an escape character, you can also write this path=d:/soft/eclipse_plugins/easyplorer



After writing, the file structure looks like this.


eclipse/
    |-links/
        |-phpeclipse.link
	|-easyplorer.link


After installation, restart will be able to see the installed plug-in, which is more difficult than the first plug-in installation method, but it is convenient to maintain their own plug-ins, if you want to cancel off those plug-ins, just need to delete the link file, you can.






Description
1. Plugins can be installed in multiple custom directories.
2. One custom directory can install multiple plugins.
3. The name and extension of the link file can be any name, such as Myplugin.txt,goodplugin.
4. The link file can have multiple lines of path= plug-in directory, corresponding to multiple custom plug-in directories, each line of the path parameter 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 plug-in directory can use a relative path, or you can use an absolute path.





Third: Plug-in installation method using Eclipse's own graphical interface


Open Eclipse, the eclipse version of Kobayashi is Juno, if you can't find the appropriate location, please google a bit. Choose Help > Install New sofeware > Add



Enter a name in name, the name can be random, easy to maintain, such as PHPEclipse



Locate the address of the plugin compression package at location, click OK, and then install the various next.



The location here can be either a zip in your computer or an online install update URL, such as the PHPEclipse URL



http://phpeclipse.sourceforge.net/update/nightly/just need to get this address close to the location.


Fourth type: Eclipse store installation


Use Eclipse's online plugin store (Juno have, other versions don't know if there's no), choose Help > Eclipse Marketplace > enter the plugin you want to install in the search box and click the Add-in to find it. This is the simplest way. The most fool of all.






Fifth: The simplest method: (Eclipse version 3.5 and later)



The Eclipse installation root directory has a Dropins folder, downloaded from the Internet after the plug-in decompression, directly placed in this directory.






Installing plugins before Eclipse3.4 is cumbersome.



Plug-in installation features have been improved after Eclipse3.5. And very easy to use.



We just need to copy (drag and drop) the required plug-in to Eclipse\dropins, and then the plug-in is installed successfully (of course, must be extracted first). If you want to use your own plug-in on other machines. You only need to copy your own dropins to cover off the original.



note that the Dropins folder and the extracted Plugins folder can only have a layer of folders (can be Chinese), or not , such as the following 2 methods are correct, but the middle must not be more than 1 folders:






Or






This method personally feel the best, a convenient installation, two convenient unloading (delete can), three no configuration path, four convenient transfer to other computers. However, it is not known whether there is a decrease in startup speed.



Various ways that Eclipse installs plug-ins


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.