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

希望以上回答对大家有所帮助!

posted @ 2020-03-18 16:51  楠-木  阅读(2731)  评论(0编辑  收藏  举报