IntelliJ IDEA里run或debugmain方法时报Command line is too long.Shorten command line for Test or……

现象

  • 调试main方法报错Command line is too long.Shorten command line for Test or……
    IntelliJ IDEA里run或debugmain方法时报Command line is too long.Shorten command line for Test or……

解决

  • 其实很简单,配置下就行了
  • 不需要改配置文件
  • 可以点击弹框里的“default”,进配置页面
  • 也可以点idea的配置按钮进入配置页面
    IntelliJ IDEA里run或debugmain方法时报Command line is too long.Shorten command line for Test or……
  • 把默认的改成 JAR manifest
    IntelliJ IDEA里run或debugmain方法时报Command line is too long.Shorten command line for Test or……