IDEA 运行报错:Error running ' XXX ': Command line is too long. Shorten command line for XXX

在运行 IDEA 时报错: Error running ' XXX ': Command line is too long. Shorten command line for XXX
网上查了一下,有两种解决方法。

方法一:转载自:https://blog.csdn.net/ZXJ_1223/article/details/80611089

在项目中找到 .idea\workspace.xml,找到标签 , 在标签里加一行

方法二:转载自:https://blog.csdn.net/zcc_heu/article/details/80682849

打开 run-> edit configuration,修改其中的 Shorten command line,改成 JAR manifest

原文地址:https://www.cnblogs.com/keyi/p/15743490.html