Three ways to install plug-ins in eclipse usage eclipse

Source: Internet
Author: User
Tags testng

Eclipse also used for a long time, but did not how to find out how to install plug-ins, today just in their own new bought the book to try. Now write down the experience for reference. There are three main ways to install the Eclipse plugin:

Online Installation:

Take the installation of testng as an example to illustrate its installation process.

First step: Click on the "Help" menu in the menu bar and select "Install New software ..." in the drop-down column. "Install" will be displayed.

The second step: in the pop-up "Install" box, select the previously established site, if not established, you can click the "Add" button, pop up a dialog box to add site, in the box after the name attribute to the site an alias, After the Location property, enter the network location of the plug-in, which is usually given an address on the plugin's official website and copied directly. )。

Step three: Click OK. The system automatically testng to load. Then select and click "Next". You can do it gradually.

Off-line intrusive installation:

That is to download the plugin, after decompression, you will see features and plugins two folders, the two folders of all the contents of the corresponding copy to the Eclipse features and plugins folder, restart Eclipse. If you do not have this two folder, it means that the plugin itself belongs to plugin, so just need to unzip the plugin and put it under plugins.

Here is an example of the WTP:

After decompression there will be features and plugins two folders. Copy the contents of the two folders directly into the features and plugins under the Eclipse installation directory, respectively. Then restart Eclipse.

Take testng as an example, just copy the downloaded plug-in jar package to plugins below.

Note: This is not very good, because when you want to uninstall or update a plug-in, go to features and plugins inside to find a plugin will be very troublesome.

Off-line chained installation:

Under the installation directory of Eclipse, create a Links folder under which a link file named after the plug-in name is created, in which the following key-value pairs are entered: path= "the absolute path to which the plug-in is located or the relative path of the plug-in."

Here is also the case of the WTP:

1. Create the following directory to hold the plugin: D:\myplugins. Then create a WTP directory under this directory as the plug-in directory. The plugins and feature two directories in the plugin are then copied to the WTP directory. At this point the directory structure is:

D:\myplugins\WTP:

Features

Plugins

2. Create a link file: Create a link file under the Links folder above, such as Wtp.link. The contents of the file have only one key-value pair:

Path= "D:/MYPLUGINS/WTP" or "D:\\MYPLUGINS\\WTP"

Attention:

(1) The path must not be: "D:/MYPLUGINS/WTP". Because "\" will be combined with the following letters into an escape character. A typical example is "D:/myplugins/tomcat", "/" will be combined with "T" to become tab, so the path will actually become "D:/myplugins omcat".

(2) If a software plugin is updated or the plugin is installed, it does not work, The first is to go to the root directory of eclipse below the configuration to remove org.eclipse.update, the role of the package is to describe the current use of the plug-in situation, after the deletion, the restart eclipse will be re-scan all the plug-ins, regenerate a new org.eclipse The. Update package already has an XML file inside the package.

(3) Eclipse in the loading process first find the eclipse itself plugins and features two packages, and then scan the Links folder under each file connected to the path under the plugins and features package, go to these packages loaded files. It is required to have plugins or plugins and features two directories under the plugin directory. Note here that like the previous testng plugin is just a jar package, then we need to manually create a plugins under the plugin path and copy the jar package into the plugins.

(4) If there is any problem during the installation, eclipse will generate a timestamp-name log file in the configuration directory at boot time to view the error message. Note that the file will appear at the wrong time and will be deleted automatically after eclipse is started.

(5) Sometimes in order to make the path simpler, we take a relative path. The relative path refers to the path relative to the links directory. For example, we will move the Myplugins directory below the Eclipse directory, and the links sibling, where the path can be written as: Path= "MYPLUGINS/WTP".

Three ways to install plug-ins in eclipse usage eclipse

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.