在運行 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

希望以上回答對大家有所幫助!
