Source:
Http://doc.okbase.net/u011004037/archive/146968.html
This is better than a separate eclipse. A separate eclipse is equivalent to eclipse Installer's eclipse under the pool profile, and the next profile in the same pool can share artifact (that is, the jar package)
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Directory (?) [+]
For some reason, you need to reinstall Eclipse, and when you log in to Eclipse's website to download eclipse, you discover that the community has launched Eclipse Installer. So just come down and try something fresh.
At first there were some options that were not quite clear, but now I like the tool. So I would like to share with you the use of this handy tool.
It's not a hassle to upgrade eclipse before, set up a network proxy, and then use Eclipse's own upgrade service to use the latest version of Eclipse in a moment. But this year the agent is not good, Even Eclipse's own upgrade service is out of the way. Daoteng an afternoon instead of breaking eclipse, just go to the official website of the new version of Eclipse, and then found the Eclipse Installer this tool.
The Eclipse website describes it as: the Eclipse Installer (based on oomph) automates the installation and update of Eclipse integrated Develo Pment environments.
I decided to try this tool when I saw it was able to install and upgrade eclipse automatically. Gossip says a lot, we get to the point. See how this tool is installed and used.
Due to national conditions, the use of Eclipse Installer may require a feather wall, please bring your own ladder
Download and install
Note: Using Eclipse and Eclipse Installer requires that you install the JDK first. To install the JDK, refer to my other blog, "Installing JDK"
Download
Go to eclipse download page: http://www.eclipse.org/downloads/eclipse-packages/
If the JDK is 64-bit, download the 64-bit, otherwise download the 32-bit.
After the download is complete, execute the downloaded file (my is Eclipse-installer-win64.exe), the first execution may take some time to open, please be patient.
Upgrade
Open, there may be an exclamation point in the upper-right corner, click the
Three horizontal lines(hereinafter referred to as the Options/Options menu), you will find that there are available updates (obviously downloaded is the latest version unexpectedly also prompted the update ...), wait for the update is complete, click
OK, restart
Unzip the file (not required)
This step is not a must, just an indication that Eclipse Installer has this feature. Click on the Options menu and select Advanced, and you will be prompted if you need to have the tool (extracted) in a fixed position.
We choose Yes.
Then select the decompression path, select the Create Start menu item, click OK to start the decompression, the decompression will automatically restart after the completion. If there is a problem with the startup (seemingly due to a problem with the temporary file), click OK, and then double-click the oomph.exe in the extracted directory. The file is ready.
Configure Bundle Pool
With Eclipse installer you can easily configure the bundle pool, which is a very cool feature:
P2 natively supports the notion of bundle pooling. When using the bundle pooling, multiple applications share a common plugins directory where their software is stored. There is no duplication of content, and no duplicated downloads when upgrading software.
The Eclipse installer itself supports bundle pool because the bundle pool supports sharing common plug-ins, so the plugin/jar package that has already been downloaded is not repeated, which makes installing eclipse faster and takes up less space.
To manage bundle pool, we can click on the Options menu –> Click BUNDLE Pools ...
It will automatically create a pool. Here we delete the default and create a pool ourselves.
Note: I have already created a pool. To demonstrate the effect I will create a new pool, so it will show that I have two pool.
A pool needs to have a P2 agent to manage the pool and track all the files (also known as P2 information) that are required for the specific eclipse installation. Since we have removed the default generated P2 agent, we need to create a new agent: Click on the right
New Agent ..., select the location where you want to save the information. It is important to note that a new agent is created with a default pool at the same location as the
Agent Directory/pool
Configure a new pool (not required)
This step is also just to demonstrate the functionality of this tool
We select the "pool" –>Deletethat was generated by default, and then click New Bundle Pool.... Specify a different directory.
Then select the pool you just created, and click on the lower right corner
OK. This will set the pool you just created as the default pool. All future packages will be stored in this pool.
Install Eclipse
Finally, you can install eclipse! Installing Eclipse is a lot easier than the previous efforts.
We return to the main form, select the Eclipse IDE for Java developers–> Setup, the JVM version and theinstallation directory –> install. This will pop up the license agreement window, we choose to accept, Start installation ...
The installation time is related to your network speed. I am here about three or four minutes to OK, the speed is relatively fast.
After the installation is complete, you can start Eclipse or view the installation log and the Readme file:
Install directory structure
Before starting eclipse, let's look at its directory structure (because the directory tree under Windows is messy, where I use text to represent the tree):
- Agent (the directory of packages used by eclipse. 183M)
- Org.eclipse.equinox.p2.core (catalogue)
- Org.eclipse.equinox.p2.engine (catalogue)
- . Settings (Directory)
- Profileregistry (catalogue)
- G__temp_java-latest-released_eclipse.profile (catalogue)
- Org.eclipse.equinox.p2.repository (catalogue)
- Pools.info (file)
- Profiles.info (file)
- Tpool
- . Eclipseextension (Directory)
- Features (catalogue)
- Plugins (catalogue)
- Artifacts.xml (file)
- java-latest-released (the directory you installed for eclipse. 15.0M)
- Eclipse (Directory)
- Configuration (directory)
- Dropins (catalogue)
- Plugins (?) (? I have)
- Readme (Directory)
- . eclipseproduct (file)
- Eclipse.exe (file)
- Eclipse.ini (file)
- Eclipsec.exe (file)
- epl-v10.html (file) (? I have no)
- notice.html (file) (? I have no)
- Eclipse-installer (This is the installation package directory that can be shared with other people.) 52.8M)
- Configuration (directory)
- Features (catalogue)
- P2 (catalogue)
- Plugins (catalogue)
- Readme (Directory)
- Artifacts.xml (file)
- Eclipse-inst.exe (file)
- Eclipse-inst.ini (file)
If you have previously installed eclipse, you will find that the installation directory here does not have the features and plugins directories, which are now in the pool directory. The P2 Agent directory has information about the jar files that are installed by eclipse.
Install the other eclipse
If you want to develop a JSP page after some time, then you need to use the Eclipse IDE for Java EE developers. Here we install this version of Eclipse to try:
When we click
INSTALLbutton, you will find that the installation is faster! You should know the reason: it will only download different jar packages, and other
Eclipse IDE for Java developersVersion of Eclipse sharing is OK.
Manage Bundle Pool
Let's go back to the Bundle Pool Manager dialog, select the agent we created, and then click Analyze..., and we'll see which jar packages each version of Eclipse depends on, Which jar packages are shared by multiple eclipse information such as:
Delete Eclipse
A closer look at the image above will reveal: even if you select an Eclipse,Delete 1 Selected ... The button is still disabled. So how can you delete an eclipse?
Here we can first delete the corresponding Eclipse directory in the file Manager, for example, if you want to delete eclipse IDE for Java developers.
- Then delete the G:\temp\java-latest-released directory First
- Wait a moment for the eclipse to turn gray, then we select this eclipse–>Delete 1 Selected....
- Next we need to remove the extra jar. Select the Unused entry in the drop-down list in the lower-left corner of the artifact table –>Select all n–>Delete n Selected ... –>Yes. So we're going to delete an eclipse.
Note: If you have eclipse under the pool, you cannot delete the pool. Similarly, if the P2 agent has a pool, it is not possible to delete the P2 agent.
Since I started using this tool, I haven't seen an eclipse upgrade yet, so it hasn't been upgraded yet. Try this feature when the eclipse is upgraded.
Written in 2015/05/13
Install Eclipse installer with eclipse