Eclipse loads, but gives a "Java tool initialization" error

I started eclipse correctly. After loading, I get: "Initialization of the Java tool". Incompatible magic value 0 in class file org / eclipse / jdt / internal / core / search / BasicSearchEngine

I searched and found that Eclipse hangs when initializing java tools

I set JAVA_HOME and -vm in eclipse.ini

However, no success.

Any ideas would be appreciated.

======= Added after I solved the problem (Stack overflow will not allow me to post this as an answer because I feel bad.)

Nothing.

Perhaps it is important to have an answer to what I have done so that people having the same problem cannot go through the hoops I sent.

First I went to help / About Eclipse / Installation Details. In the installation history, using comparison and return, I started returning what I installed (Compare and Revert is pretty cool BTW.) Finally, I found that it was the last stable version, and the installation that broke everything

Spring Source http://dist.springsource.com/release/TOOLS/update/e3.7

Initially, I selected some additional components that sounded cool, but the second time I pretty much went for the right one, plus support for AOP, web tools, and Flex and WebServices. Other than that, I ignored everything else. It worked.

I chose earlier (one of those who killed him, not quite the one), in addition to what I left installed: Spring Integration with Mylyn Spring Suite Tool AWS Integration Spring Tool Suite Maven Support Source of weaving Eclipse

I also had the "Mylyn Builds Connector: Jenkins / Hudson integration", which worked for me in the past. I still suspect this is one of the components of Spring.

I hope this helps

+4
source share
3 answers

Rebooting usually solves this problem. As @Carsten pointed out, close all open files and exit eclipse and then run the application. I have encountered this problem many times. The reasons for this range are:

  • Low memory assigned to eclipse. You can increase memory by editing the eclipse.ini file and changing the parameters -X * JAVA_OPTS
  • Uploading large files (in this case, XML is always a culprit).
  • Attempting to format large XML files
  • Immediately after installing a new plugin and immediately restarting the eclipse, etc.
+4
source

Clear the \ Workspaces \ MyEclipse 8.5 M2.metadata.plugins \ org.eclipse.core.resources.projects folder after closing eclipse / myeclipse. It.

+1
source

This is a problem with STS, however they blame it for the Eclipse error that has been fixed: https://issuetracker.springsource.com/browse/STS-696 . If you look at the dependencies of the STS plugin, you will notice that the WTP version of Eclipse has walked the path that is mentioned in the Eclipse error.

0
source

Source: https://habr.com/ru/post/1402983/


All Articles