Three ways to install the eclipse-plug-in

Source: Internet
Author: User
Tags win32

(The first two installation methods are the installation of multi-language packs as an example)

1. General installation: With direct decompression of the installation method to achieve

Unzip the plugin to a folder

Unzip the downloaded plug-in file into the installation directory of Eclipse

If the plugin file is multi-language pack: Nlpack1-eclipse-sdk-3.1.1a-win32

Download the plug-in file most books compressed files, extracted after the folder containing eclipse (there are plugins and features folder), Nlpack1-eclipse-sdk-3.1.1a-win32 After extracting the directory structure is (I assume the plug-in decompression into the F:\hongjun\myPlugins\language) F:\hongjun\myPlugins\language\eclipse, F:\hongjun\myPlugins \language\ is called the plug-in installation directory

2. Links installation: The way to create a link file

※▲ recommends this type of installation, as it facilitates the management of plugins. ※▲

① Create a new folder under F:\hongjun\eclipse links, so you get the F:\hongjun\eclipse\links

② Create a new link file under F:\hongjun\eclipse\links, such as language.start (note that the suffix can be arbitrarily taken, such as. Link,.ini,.txt and so on, as long as the link file name and the last file in the plug-in File installation directory The folder name is consistent, here my plug-in installation directory structure for F:\hongjun\myPlugins\language\, so the link file name I named Language.start, if your plug-in installation directory structure for D:\eclipse\ Myplugins\languagepack, your link file name should be named Languagepack.start).

③ writes the following sentence in Language.start path= f:/hongjun/myplugins/language, or path=f:\\hongjun\\myplugins\\language.

That is, path= your plugin installation directory (which path will be loaded on behalf of Eclipse)

④ Restart Eclipse (if your eclipse starts before installing the plugin you need to turn eclipse off first)

Note: The path is written using "/" or "\ \" instead of "\". Error-prone here.

Important: If you find that the search has not been successfully installed, delete the folder in the configuration directory under the Eclipse directory Org.eclipse.update (this is a folder that records plug-in updates), delete this folder, Eclipse will rescan all plug-ins, and it may be a little slower to restart eclipse at this point.

3. Online Installation: Upgrade----The update Manager for the Eclipse platform itself

Enter the online installation URL into the appropriate location in eclipse

① Click "Find and Install", "Search for new features to install", "Software Update", "Help" on the Eclipse menu

② Click "Next", the Install dialog box appears, click the New remote site ... button, and the New Update Site dialog box appears, enter the name of the plugin in the Name field: XXX, enter the online URL where you want to install the plugin in the URL bar: http://..., click the "OK" button, then When you click Finish, eclipse will automatically search for the plug-in for the site you entered, and if the name and URL you entered are correct and the site can be connected, eclipse will complete the online installation of the plugin, prompting you to restart Eclipse during the installation process. You just have to follow the prompts to do it.

At this point, Eclipse's three plug-in installation methods have been introduced.


The following is a brief look at some of the problems and solutions that may arise during the installation process.

I. Links way to install, be sure to pay attention to the path of the wording

There are roughly three types:

There are two types that have been introduced to everyone in the previous, and the other is to use a relative path.

If your plugin is created in your Eclipse installation directory, you can use relative path notation.

The specific point is: If I unzip the multi-language pack to F:\hongjun\eclipse\language, then the path in the link file can be written like this: "Path=language"

In addition, a custom directory can install multiple plugins;

Plug-ins can be installed in multiple custom directories separately;

Link file filename of the urgent extension can be arbitrary name;

The Link file can have multiple lines of path= plug-in installation directory, corresponding to multiple custom plug-in directories, each line of the path parameter will take effect;

You can also have multiple link files in the links directory, and the path parameter in each link file will take effect.

II. After the three-way plug-in is installed, you will need to restart Eclipse to see the plugin take effect.

If you installed a plugin that is already installed, but found that the new plugin you installed is missing

It is possible that the plug-in you installed does not support the current version of Eclipse, or it may be caused by a system configuration.

III. You cannot see the plugin after you install it in Windows-I preferences

① Remove the eclipse\configuration\org.eclipse.update. The reason for this is that you started eclipse before you installed the new plugin, recorded the plugin's history update under the Org.eclipse.update folder, it only remembers the previous plugin update, and your newly installed plugin doesn't record it, So deleting this folder will solve the problem, but after removing the folder, Eclipse will rescan all the plugins, and then restarting eclipse may be a bit slower than it was just now.

② Create an Eclipse Quick Start method, add a "space-clean" parameter to the target column, and be careful not to omit the space in front of the-clean. Or start your eclipse in the menu "Start"-"Run" and add the-clean parameter, as I can enter in "Run": F:\hongjun\eclipse\eclipse.exe–clean

If you find the new plugin you installed after launching Eclipse, remove the parameter clean before the next boot.

③ If Eclipse startup cannot find the plugin, the workaround is to add a line to the Config.ini file in the Eclipse\configuration directory: osgi.checkconfiguration=true

So it will find and install plug-ins, find the plug-in can be commented out (remove), so that every time after the launch will not be looking for plug-ins and appear slow.

Three ways to install the eclipse-plug-in

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.