6

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.

Martin Drozdik
  • 12,742
  • 22
  • 81
  • 146
  • 1
    I would recommend to file an issue at https://github.com/spring-projects/spring-ide/issues and attach the full stack trace to that issue. You can find the details and hopefully the full stack trace in the Error Log view in Eclipse/STS. – Martin Lippert Apr 03 '17 at 07:28
  • I tried all the answers and none worked. I ended up installing a fresh version of eclipse and it solved it – Pritam Banerjee Nov 16 '20 at 23:50

5 Answers5

9

It was for me due to the scala plug-in which I have installed a few days back. Uninstall the scala plugin and change to JDK 8 or JDK 11 it will work.

iammallikarjuna
  • 171
  • 1
  • 6
  • Same for me, removed scala plugin and it's fixed. Thanks! – Barry Knapp Mar 16 '21 at 12:23
  • Glad, it was helpful. – iammallikarjuna Mar 23 '21 at 06:43
  • 1
    I just had the same problem, and in my case it was the Kotlin language support plugin that needed to be uninstalled. This, to me, suggests it might have something to do with mostly any compiled language that gets added to Eclipse - both Scala and Kotlin get compiled, but are not plain Java. – user625488 Apr 13 '21 at 15:11
  • @user625488 I think you are right. But in my case I need Kotlin language support. I can't uninstall it. Any ideas how to get it to work with such plugins? Thank you. – Boris Brodski Jul 07 '21 at 14:32
  • I dig a little mode it's due to aspectj which not found org.objectweb.asm by https://github.com/eclipse/org.aspectj/blob/master/weaver/src/main/java/org/aspectj/weaver/bcel/asm/AsmDetector.java. But I found it in my eclipse plugin directory. I add the optional dependancy on manifest but it still not working – Duff Oct 14 '21 at 08:47
4

If anyone is still having a similar problem with Eclipse and needs to use Java 11 or higher (Eclipse nowadays seems to require Java 11) then have a look into this plugin as it seems to be required for the kotlin plugin. https://marketplace.eclipse.org/content/aspectj-development-tools

2

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!

1

I had to downgrade the JRE used to run Eclipse. Downgrading from Java 15 to Java 11 solved the problem.

Use the -vm option in eclipse.ini, eg.

 -vm
 c:\Dev\jdk-11\bin
snorbi
  • 2,590
  • 26
  • 36
0

My STS did not even start after installing scala plugin. I had to manually delete scala jars and folders from the STS /plugins. After that it started working.

Prashant S
  • 349
  • 4
  • 14