How to fix Eclipse hanging or not starting on startup
Codemia Knowledge Hub ·
Most Eclipse startup hangs come from a corrupted workspace, a bad plugin, too little memory, stale temporary files, or an incompatible JDK. Work through them in that order: start with a fresh workspace, launch with -clean, raise the heap in eclipse.ini, update or remove plugins, delete the workspace .snap file, and check which JVM Eclipse is using. The workspace error log usually tells you which one it is.
Check the error log first
Eclipse writes detailed errors and stack traces to the .log file in the .metadata folder inside your workspace. Read it before changing anything, because it often names the plugin or setting that is stuck.
Start with a fresh workspace
Corrupt workspace settings are a frequent cause. Launch Eclipse from the command line or a shortcut and pass -data with a new workspace path:
If Eclipse starts normally, the problem is in the old workspace.
Launch with -clean
Run Eclipse from its installation directory with the -clean option:
This wipes the cached plugin and runtime data Eclipse builds at startup, which helps when a plugin change has left that cache in a bad state.
Give Eclipse more memory in eclipse.ini
Edit eclipse.ini to increase the memory available to the JVM:
-Xmssets the initial Java heap size.-Xmxsets the maximum Java heap size.-XX:+UseG1GCenables the Garbage-First collector, which can improve performance.
If you adjust these and other parameters often, a small launch script saves editing the file each time.
Update or remove problem plugins
Incompatible or poorly maintained plugins can block startup:
- Update them from
Help -> Check for Updates. - Disable or remove ones you do not need from
Help -> Eclipse Marketplace -> Installed.
Delete the workspace .snap file
Old temporary files can conflict at startup. Go to your workspace directory and delete .metadata/.plugins/org.eclipse.core.resources/.snap.
Point Eclipse at a compatible JDK
Check the Java version Eclipse runs on under Help -> About Eclipse IDE -> Installation Details -> Configuration. Then make sure the -vm entry in eclipse.ini points to the correct JDK:
Quick reference
| Problem | Fix |
| Corrupted workspace | Start with a fresh workspace |
| Plugin issues | Launch with -clean, then update or disable plugins |
| Insufficient memory | Adjust memory settings in eclipse.ini |
| Temporary file conflicts | Delete the .snap file |
| JDK compatibility problems | Set -vm to a compatible JDK |
Related reading
- How do I profile a Python script?
- How do I profile a tf.data.Dataset?
- How do I profile memory usage in Python?
- How do I query between two dates using MySQL?
- How do I print an exception in Python?
- How do I print inside the loss function during training in Keras?
- How do I replace weak references when using ARC and targeting iOS 4.0?
- How do I resize the UIImage to reduce upload image size

DSA Fundamentals
Master algorithmic patterns and data structures through hands-on LeetCode-style problems - from arrays and hashing to dynamic programming and advanced graphs.
View the courseData Structures & Algorithms practice on Codemia
Step through 300+ coding interview problems with animated visualisers that show the data structure changing as the code runs. The Blind 75 are free.