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 de velopment 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.
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 the Eclipse download page and select "Developer Builds" (or open this url:http://www.eclipse.org/downloads/index-developer-default.php directly).
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 on the exclamation mark in the three horizontal line (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 updates ...), wait for the update 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 of the 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 OKin the lower right corner. 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
- org.eclipse.equinox.p2.core (directory)
- org.eclipse.equinox.p2.engine (directory)
- . Settings (directory)
- profileregistry (directory)
- G__temp_java-latest-rel Eased_eclipse.profile (directory)
- org.eclipse.equinox.p2.repository (directory)
pools.info (file)
- profiles.info (file)
- tpool
- features (directory)
- Plugins (directory)
- artifacts.xml (file)
- java-latest-released
- Eclipse (directory)
- Configuration (directory)
- Dropin S (directory)
- Readme (directory)
- . eclipseproduct (file)
- eclipse.exe (file)
- Eclip Se.ini (file)
- eclipsec.exe (file)
- epl-v10.html (file)
- notice.html (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 the Install button, we find that the installation is getting faster! You should know why: it will only download different jar packages, and the other and Eclipse IDE for Java developers Version 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