【问题标题】:Eclipse STS 4 Error: Could not find or load main classEclipse STS 4 错误:找不到或加载主类
【发布时间】:2020-05-15 14:47:29
【问题描述】:

我在最新版本的 Eclipse STS 4 上遇到以下错误。

无法找到或加载主类 com.infoflow.report.ReportApplication

这是我的 STS 版本:

Spring 工具套件 4
版本:4.5.1.RELEASE

构建 ID:202001211336

我的春季版

2.0.6.发布

我尝试了以下操作,但似乎还没有运气:

  1. 重新导入项目
  2. Maven 清理/项目清理
  3. 将 JRE 更改为 JDK
  4. 列表项

非常感谢您对此提供任何帮助。

【问题讨论】:

  • 能不能显示 pom.xml 或者 build.gradle
  • 切换回 STS 3 解决了这个问题,也许 STS 4 还没有稳定/准备好使用。
  • 这更多的是spring boot版本与sts的兼容性,maven插件无法正常工作,所以要么使用spring boot的兼容版本,要么更改你所做的sts。
  • 所以这意味着我的 Spring 项目版本不再受 STS 4 的支持了吧?

标签: java spring eclipse spring-tool-suite spring-tools-4


【解决方案1】:

请检查问题:

STS issue 406

STS issue 407

显然问题在夜间构建中解决了

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

我有同样的问题,正在测试 issue 中提出的解决方案

【讨论】:

    猜你喜欢
    • 2016-09-23
    • 2014-03-28
    • 2014-11-18
    • 2012-06-29
    • 2014-06-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多