报错信息如下:

IDEA报错:Error running $classname: Command line is too long. Shorten command line for $classname.

之所以出现这个原因是一般是因为打印的环境变量太长了,超过了限制,可以尝试以下方案:

方法一:选中上图中的蓝色字,跳转到下图。

选择j如图jar manifest(每个报错的类都需要注意设置)

IDEA报错:Error running $classname: Command line is too long. Shorten command line for $classname.

方法二:项目的.idea/workspace.xml有这个选项,可以修改默认值,这样就不用每次更改

IDEA报错:Error running $classname: Command line is too long. Shorten command line for $classname.

相关文章:

  • 2021-10-15
  • 2021-09-16
  • 2022-12-23
  • 2021-10-15
  • 2021-12-13
  • 2021-08-02
  • 2022-12-23
猜你喜欢
  • 2021-05-10
  • 2021-07-03
  • 2021-12-08
  • 2021-04-08
  • 2021-06-07
  • 2022-01-20
相关资源
相似解决方案