Search code examples
eclipseubuntuinstallationspring-tool-suite

How to solve the 'Unable to find Asm for stackmap generation' error on startup of STS?


I am trying to use the Spring Tool Suite 3.8.3 on Ubuntu 16.04. Upon startup I get this error:

An internal error occured during: "Initializing Java Tooling"

with the detailed message:

An internal error occurred during: "Initializing Java Tooling". Unable to find Asm for stackmap generation (Looking for 'aj.org.objectweb.asm.ClassReader'). Stackmap generation for woven code is required to avoid verify errors on a Java 1.7 or higher runtime when weaving type org.eclipse.jdt.core.search.SearchPattern when weaving classes when weaving

I have to admit that I have no idea what I should do here and I failed to find any pointers online. Any advice or hint is welcome.


Solution

  • I think you have installed Java 9 on your system. That's why you are facing compatibility issue and getting the stated errors. I therefore suggest you to degrade your java version to 8 for which it will work well and you wont be facing any error issue in that. You can install java8 from this link!