0

I got following error on my latest version of Eclipse STS 4.

Could not find or load main class com.infoflow.report.ReportApplication

here is my STS Version:

Spring Tool Suite 4
Version: 4.5.1.RELEASE

Build Id: 202001211336

My Spring Version

2.0.6.RELEASE

I have tried following actions but seem no luck yet:

  1. Re-Import the Project
  2. Maven Clean / Project Clean
  3. Change the JRE to JDK
  4. List item

Any help regarding this would be very appreciated.

Yusuf Ibrahim
  • 1,591
  • 5
  • 21
  • 46
  • can you show pom.xml or build.gradle – Ryuzaki L Jan 30 '20 at 02:39
  • here https://pastebin.com/EVZV4DrM – Yusuf Ibrahim Jan 30 '20 at 02:46
  • Switched back to STS 3 solved the issue, maybe STS 4 is not stablle/ready yet to use. – Yusuf Ibrahim Jan 30 '20 at 03:29
  • This is more of spring boot version compatibility with sts, maven plugin failed to work properly so either use compatible version of spring boot or change the sts which you did. – Niraj Jha Jan 30 '20 at 04:21
  • so it means that my Spring project version is no longger supported by the STS 4 right? – Yusuf Ibrahim Jan 30 '20 at 07:31
  • To check which all version support create a demo spring boot application in sts and see the drop down. – Niraj Jha Jan 30 '20 at 07:40
  • thanks for the info mate, that's help alot – Yusuf Ibrahim Jan 30 '20 at 07:45
  • The Spring Tools 4 themselves should work on various Spring Boot versions and there is no specific minimum version that you need in your project in order to allow the IDE to work with it. In case the Maven integration in Eclipse fails for your project, that could indeed happen, especially around specific versions of Maven plugins that you use and specific JDK versions (referring to the JDK that is used to run the IDE itself). – Martin Lippert Jan 30 '20 at 09:14
  • @YusufIbrahim What Eclipse version is this STS based on? For Eclipse 2019-12 there is an active issue that causes this exception due to long classpath: https://bugs.eclipse.org/bugs/show_bug.cgi?id=558495 – helospark Jan 30 '20 at 12:39
  • There are many possible reasons for an error like that. One possibility is this Eclipse bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=558495 which affected windows when project has a lot of dependencies. Also discussed here https://github.com/spring-projects/spring-ide/issues/406 . Your problem may be something else, but this is still a good candidate. – Kris Jan 30 '20 at 17:00

1 Answers1

0

Please, check issues:

STS issue 406

STS issue 407

Apparently the problem solved in nightly build

http://dist.springsource.com/snapshot/STS4/nightly-distributions.html

I have the same problem and testing the solution proposed in issue