Java learning notes-Eclipse plug-in Installation

Source: Internet
Author: User
Install the eclipse plugin

Eclipse is an open-source and Java-based scalable development platform. In itself, it is only a framework and a set of services, used to build a development environment through plug-in components. Fortunately, eclipse comes with a standard plug-in set, including Java development tools (jdt ).
I am currently working on a project that uses eclipse as a development tool. I use eclipse3.1.0. It feels good and the interface is friendly!

Eclipse provides many plug-ins. You can search for them on Google. After you get the plug-ins, how can you install the plug-ins?

The following describes how to install the Eclipse plug-in.

There are two ways to install the Eclipse plug-in

1. The eclipse installation directory contains the plugins and features directories. The downloaded plug-ins will also have these two folders after being decompressed, copy and paste the contents in the folder in the plug-in to the corresponding eclipse directory, and restart eclipse. (That is, you copy all the content in the plug-in plugins folder to the eclipse plugins directory, and then copy all the content in the plug-in features folder to the eclipse features directory ).

In the main directory of eclipse (eclipse_home, for example, the directory installed on my machine is: D: \ javadev \ 3.1), there is a directory of plugins. The plug-in installation in this method is very simple, just copy the plug-in to this directory. For example, if I have a WebLogic plug-in (which can be downloaded on the BEA site), decompress the plug-in to get a directory: [COM. bea. eclipse. weblogic_1.1.1], I will put this directory directly under the % eclipse_home % \ plugins directory, after restarting eclipse, we will see Run-> "Start
WebLogic menu. After the Weblogic plug-in is installed, the full path is: D: \ javadev \ 3.1 \ plugins \ com. Bea. Eclipse. weblogic_1.1.1]

2. There is a links directory under the eclipse installation directory. You can create a. Link file in it. The name is whatever you like. The content is:

Path = D: \ org. Maven. Ide. Eclipse

(Here, D: \ org. Maven. Ide. Eclipse is the directory path when your plug-in is decompressed. Note that the slash is two backslashes, so it is best not to show Chinese characters ).

After saving, restart eclipse.

Create a links directory under the eclipse directory (eclipse_home), and put your plug-in wherever you want to put it, at this time, you put the plug-in directory, and I called it the plug-in directory (plugin_home), and then create a link file under your % eclipse_home % \ links \ directory, for example, if I want to install a VSS plug-in, I created the: vss_1.6.1.link file in my links directory. The vss_1.6.1.link file points to the plug-in directory (plugin_home, for example, the plug-in directory on my machine is D: \ javadev \ plugins ). The content of the vss_1.6.1.link file is:

Path = D :\\ javadev \ plugins \ vssplugin_1.6.1

When installing the plug-in, you must note that if you are a separate JAR file, you 'd better create such a directory under the directory specified by the link file: Eclipse \ plugins \ XXX. XXX (plug-in name and version number), and then put the JAR file in this directory. For example, if the directory of the VSS plug-in on my machine is D: \ javadev \ plugins \ vssplugin_1.6.1 \ eclipse \ plugins \ org. vssplugin_1.6.1, there is a file: vssplugin. Jar

After installing the plug-in, you need to restart eclipse to see the plug-in. If a plug-in has been installed and you want to reinstall it, you only need to replace the file or modify the link file path. If you cannot recognize the plug-in, it may be that your plug-in does not support your current eclipse version. Please check. It may also be caused by system configuration. Once I appeared, my solution was to delete all the files in the configuration directory under eclipse_home, with the remaining config. ini files.

13. Eclipse plug-in uses the links directory:
Assume that the plug-in is installed in the D: \ myplugin directory, the directory structure of myplugin must be as follows:
D: \ myplugin \ eclipse \ plugins \ ins and D: \ myplugin \ eclipse \ Features \ INS
For example, if the eclipseme plug-in is installed in the D: \ myplugin directory, the directory structure

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.

Create a link file, such as myplugin. link. The file content is Path = D: \ myplugin.
When eclipse is started, the plug-in is installed. If you want to temporarily disable the plug-in, you only need to delete the myplugin. Link file.
Note:
1. Plug-ins can be installed in multiple custom directories.
2. Multiple plug-ins can be installed in a custom directory.
3. The file name and extension name of The Link file can be any name, such as myplugin.txt and goodplugin.
4. The link file can have multiple lines of Path = plug-in Directory, which corresponds to multiple custom plug-in directories. 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 plug-in directory can use relative paths. If we create the myplugin directory in the eclipse installation directory

D: \ eclipse directory, you only need to set Path = myplugin

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.