Eclipse
startup issues
troubleshooting
IDE
performance optimization

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:

bash
   eclipse -data /path/to/new/workspace

If Eclipse starts normally, the problem is in the old workspace.

Launch with -clean

Run Eclipse from its installation directory with the -clean option:

bash
   eclipse -clean

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:

ini
1-vmargs
2-Xms256m
3-Xmx1024m
4-XX:+UseG1GC
  • -Xms sets the initial Java heap size.
  • -Xmx sets the maximum Java heap size.
  • -XX:+UseG1GC enables 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:

  1. Update them from Help -> Check for Updates.
  2. 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:

ini
  -vm
  /path/to/jdk/bin/java

Quick reference

ProblemFix
Corrupted workspaceStart with a fresh workspace
Plugin issuesLaunch with -clean, then update or disable plugins
Insufficient memoryAdjust memory settings in eclipse.ini
Temporary file conflictsDelete the .snap file
JDK compatibility problemsSet -vm to a compatible JDK

Course
Intermediate
27 lessons
15 hours
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 course
Data 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.

Practice algorithms