you may want to take a look at how to report a deadlock. you may also want to check the error view and/or the error log ([workspace]/.metadata/.log). if that doesn't help, you'll probably need to include more info about which plugins you have installed and which projects you have. can you create a minimal workspace which reproduces the problem?
i just had the same problem.
by using task manager to kill the build process and exiting eclipse with no projects open, i was able to get back into eclipse and clean the project without opening it. i then restarted eclipse again,loaded my project and all ok.
i've found that this might also happen if you rebuild a workspace with a project containing a lot of image data (such as a dedicated images project). might be best to put something like that into its own workspace and handle it separately to the rest of the projects you deal with.
if you can't, then don't clean that project when you clean and rebuild. only rebuild when necessary.
in my case problem arise after importing downloaded project - stuck at 80% build. solved by adding write permissions for group to project's files (ubuntu 12.04).
in my case it helped to remove the source folders from my favorites in the windows explorer (windows 8.0). it seems that the build was not actually stuck, but triggered in some kind of infinite loop (as mentioned here - bug 342931).
sometimes the problem seems to be fixed by killing other programs which have files open from the project folder.
looking at the logs in
[workspace]/.metadata/.log provided useful information for me.
turned out there was a
java.lang.outofmemoryerror: permgen space error when the workspace build would hang.
this can be edited in the
sts.ini(if you are using springsource tool suite) file.
- i first installed tern.js 0.9.0.
i tried lots of these suggestions, but the only thing that finally worked for me was creating a new workspace, and freshly checking out all my projects into that folder. then it worked fine ;-)
i just restarted eclipse and it started working the next time.
refresh all the projects u want to build. worked
it worked for me several times.
i was able to solve this by removing extra folder that eclipse had created in my eclipse installation folder. i didn't install and i was using eclilpse neon 3 with spring tool suite also installed. but, when i looked into extracted eclipse installation, i had c: folder which had some folder structure. it was mirror image of my downloads folder. i removed it and restarted.
it worked for me!
none of the the answers here worked for me. what worked was to delete the following folder
c:\users\your username\workspace\project name.metadata.plugins\org.eclipse.core.resources.projects\project name\.indexes
rather than debug and find the exact root cause(s) for this, i just deleted the projects and the metadata folder. eclipse will rebuild the .metadata file the next time it's launched.
i then pulled in the latest project code and the problem was solved. it was more work as i had to reconfigure everything, including my servers, but build workspace had been stopping at 50% for anywhere from 3 to 5 minutes before it would completely finish, so it was worth the effort.
also, i've found that with eclipse, if you stop the build workspace before it completes and shut down eclipse if that hangs up everything, you can really mess up your configuration and waste lots of time trying to get it stable again. i'm using eclipse oxygen, but i've had this happen in all the versions of eclipse i've used, so i really try to avoid it, if possible.
inside the project folder open .project file. there is a bad entry and it might help
if you are using maven as a build tool you might want to:
delete dependency directories located in .m2/repository/ - in linux it's located under home directory and in windows it should be in c:\users<yourusername>.m2 (replace '' with your username)
start eclipse and enjoy normal work :)
that helped me resolve this issue and i hope it helps you too. :)
p.s. i've edited my answer (as @howlger asked) where it was also suggested to delete .eclipse and .p2 folders as it can do harm (although it did not in my case + i had to reinstall some of plugins i'm using).
in case there is a problem on start when building your project disable the build automatically from menu. project -> build automatically. this solved my problem while more sophisticated solutions could not.
this can also happen if you have an empty
java file that is named and classpath-located exactly like another
java file (which can happen when resolving merge conflicts for moved resources).
for example, the following setup causes this issue in a multi-maven module:
module2/src/main/java/com/package/myclass.java(actual valid class)
to fix, simply delete the empty java file.
unselect automatic build using eclipse-> windows->preferences helps fixing this issue.
deleting some of the jdt indexes (in .metadata.plugins\org.eclipse.jdt.core), particularly the big files, often fix or ease the problem for me.
i had same issue with my eclipse and as a solution, i created new project, copied all resources manually (using windows copy/paste) to new project, deleted old project and that's it.
sometimes, this happens due to improper system shutdown and eclipse workspace started facing similar issues.
hope it will work.
i faced similar issue in eclipse indigo. i changed the heapsize it started working correctly. i just added following eclipse.ini file -vmargs -xms1024m -xmx1024m
it worked fine after increasing the vm size
the only solution for me (luna 4.4.1) was this:
i have this problem whe i have too much maven projects open at once. what i tend to do is:
- restart eclipse (sometimes i need to kill eclipse)
- disable automatic build immediatly (project > uncheck build automatically)
- right click the project(s) i want to have rebuild
- close unrelated projects
- re-enable automatic build
this enables a functioning rebuild in 99% off the cases in my workspace.
the accepted answer allowed me to get eclipse started again, but it seems that the projects lost their metadata. (e.g., all the git/gradle/spring icons disappeared from the project names.) i have a lot of projects in there, and i didn't want to have to import them all over again.
so here's what worked for me under kepler. ymmv but i wanted to record this just in case it helps somebody.
step 1. temporarily move the
.projects file out of the way:
$ cd .metadata/.plugins/org.eclipse.core.resources
$ mv .projects .projects.bak
step 2. then start eclipse. the metadata will be missing, but at least eclipse starts without getting stuck.
step 3. close eclipse.
step 4. revert the
.projects.bak file to its original name:
$ mv .projects.bak .projects
step 5. restart eclipse. it may build some stuff, but this time it should get through. (at least it did for me.)
open project directory and edit .project file, remove following lines to disable java script validation.
go to eclipse installed directory and open eclipse.ini(or sts.in if you have sts), change xms and xmx value based on your ram size of your computer.
or: in windows, go to eclipse shortcut in desktop, right click->properties-> add following: c:\software\eclipse\sts-3.6.2.release\sts.exe -clean -xms512m -xmx1024m
go to eclipse->windows->preference->validation, enable suspend all validators. do this if you don't want do any validation listed in the list given in validator panel.
eclipse often freezes for me at 44% if i'm debugging android over usb. when disconnecting the device, eclipse starts.
eclipse -clean did not work but following did
eclipse -clean -clearpersistedstate
some time it's very helpful to execute eclipse from command line with "-clean" parameter to enforce it produce clean up for workspace.
i was able to fix this with the following:
first, exit eclipse. then temporarily move the following
.projects folder to a safe location:
mv .metadata\.plugins\org.eclipse.core.resources\.projects projects
start and exit eclipse, then move the
.projects folder back to where it was originally:
mv projects .metadata\.plugins\org.eclipse.core.resources\.projects
use at your own risk, of course.
- eclipse stuck when building workspace
- Eclipse Stuck on building workspace after installing Angular js
- Eclipse error when building Workspace
- Error when building Eclipse workspace OLD
- Eclipse - building workspace popup when saving file
- Disable building workspace process in Eclipse
- Eclipse gets stuck when trying to launch Android app
- Eclipse always Building workspace
- Eclipse keeps Building workspace... and Building workspace... and Building workspace
- Howto re-attach subclipse when using a new Eclipse on an existing workspace
- "The project: swing which is referenced by the classpath, does not exist" in Eclipse when project name is the same as workspace name
- Run JUnit automatically when building Eclipse project
- Eclipse Android SDK - error in building workspace
- Plugins not updated when building eclipse P2 update site
- Eclipse maven-enabled web app references workspace projects, but those are not deployed when running Tomcat server
- Eclipse becomes stuck on "starting activity" when sending application to device. How to solve this?
- Getting 'An internal error occurred during: "Compacting resource model".' when building a project in eclipse indigo
- Eclipse: Maven project builder generating NullPointerException when building workspace
- Occasional error when building an eclipse feature with a Tycho project
- SocketTimeoutException when Ant building in Eclipse
- error in building workspace in Eclipse Helios
- Eclipse ADT version 21 plugin , fail to compile working workspace "no targets available” when everything correctly setup
- Eclipse stuck while building project, "-clean" does not work
- my eclipse plug-in creates endless workspace building loops, probably job related
- Build C++ shared object when building Android project in Eclipse
- Eclipse PHP Zend: "workspace in use" when i try to set my workspace in Apache2/htdocs?
- What does it mean when Eclipse is building workspace?
- Java generics code compilation issues when building outside of Eclipse
- Disable the building of one project in an Eclipse workspace
More Query from same tag
- Getting MalformedJsonException while generating google cloud endpoint client library
- New Eclipse workspace in working copy folder does not recognize existing projects from subversion
- how to get the control of the button in class file in .java file?
- Eclipse indexer is not finding the functions using the android ndk
- Get more computation power for developing java application
- How do I make eclipse print out weird characters in unicode?
- Using FuzzyJess: fuzzy-match is not defined
- Which Eclipse Photon plugin provides a "JPA Tools" context menu entry?
- The POM for jar is invalid, transitive dependencies will not be available
- exception in thread main - java.util.InputMismatchException
- Can't connect Tomcat 6 and oracle 10g XE for jsp database connectivity
- How to sync project from Github to Eclipse
- Does Eclipse 4.4 (Luna) Require Java 1.7
- NoSuchMethodError: LocalSessionFactoryBuilder.addAnnotatedClass(Ljava/lang/Class;)Lorg/hibernate/cfg/Configuration;
- Module calling in Pydev plugin in Eclipse
- Running a Twisted Application in PyDev
- BIRT - Driver doesn't display in manage drivers
- Best strategy / practice for publishing an Eclipse plugin that requires larger-than-default JVM heap?
- Android Project with ActionBarSherlock doesn't get built
- What does the "d" symbol stand for in the list of the methods applicable for some object?
- Eclipse/javac different bytecode
- Sending data from an Android to a Laptop
- failed copy jar file from inside running jar application
- Android Tablet(9.7 inch) Emulator API for Eclipse
- Adding a lot of includes in Eclipse CDT Paths&Symbols
- Two setContentVIew for XML and Custom View
- LogCat. How to trace a bug?
- "Unable to load Maven meta-data" error from ForgeGradle on Mac OSX?
- How the launcher of eclipse Plugin development project loads\handles the "plugin.xml" file?
- Eclipse CDT - problem linking to windows lib files