使用Eclipse Installer安装失败求助:附安装日志信息
Hey there, let's tackle your Eclipse installation failure. You've already confirmed all components (PC, JDK, installer) are 64-bit, so we can cross that off the list immediately. First, let's look at the log snippet you shared:
[2018-05-05 10:12:59] Executing bootstrap tasks
[2018-05-05 10:12:59] Java(TM) SE Runtime Environment 9.0.4+11
[2018-05-05 10:12:59] Product org.eclipse.products.epp.package.java.oxygen
This log only shows the early bootstrap phase—we don't see the actual error that caused the failure. But based on the details here (Eclipse Oxygen + JDK 9), there are a few common culprits and fixes you can try:
1. JDK Version Compatibility Issue
Eclipse Oxygen (4.7) has limited support for JDK 9. While it might launch, installation processes often hit compatibility bugs with newer JDK versions. The official recommended JDK for Oxygen is JDK 8. Here's how to switch:
- Download a 64-bit JDK 8 and install it on your machine.
- Open Eclipse Installer, click the menu icon (three horizontal lines) in the top-right corner, then select Advanced Mode.
- Go to the Java tab, select the path to your JDK 8 installation, then proceed with the installation again.
2. Corrupted Installation Cache
The installer might have downloaded damaged component packages. Clearing the cache often resolves this:
- Close the Eclipse Installer completely.
- Delete the following cache directories:
- Windows:
C:\Users\<YourUsername>\.p2andC:\Users\<YourUsername>\.eclipse - macOS:
~/Library/Caches/p2and~/Library/Caches/eclipse - Linux:
~/.p2and~/.eclipse
- Windows:
- Restart the installer and try installing the Java Oxygen package again.
3. Network Issues Causing Incomplete Downloads
Unstable networks can lead to partial or corrupted component downloads. Try these fixes:
- Switch to a domestic mirror: In Advanced Mode, go to the Repository tab. Add a reliable domestic mirror and disable the default official repository.
- Use an offline installer: Skip the Eclipse Installer entirely—download the full offline zip package for Eclipse Java Oxygen, extract it, and you're ready to use it without installation steps.
If you can share the full log file (usually located in the .eclipse folder under your user directory), we can pinpoint the exact error. But the above solutions should resolve most cases matching your scenario.
内容的提问来源于stack exchange,提问作者Konrad Schewe

