Command line is too long问题解决

Posted Firm陈

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Command line is too long问题解决相关的知识,希望对你有一定的参考价值。

Idea启动项目报错:Command line is too long. Shorten command line for className or also for JUnit defaultconfiguration.

如下图所示:

解决方法:
在该项目文件夹.idea/workspace.xml中找到

<component name="PropertiesComponent">

  ...

</component>

然后在其中添加:

<property name="dynamic.classpath" value="true" />

问题得到解决。

以上是关于Command line is too long问题解决的主要内容,如果未能解决你的问题,请参考以下文章

IntelliJ IDEA - Command line is too long

Idea报错Command line is too long

Command line is too long. Shorten the command line via JAR manifest

springboot项目运行错误:Error running ‘Application‘: Command line is too long.Shorten command line for

Command line is too long的解决办法

报错Command line is too long. Shorten the command line xxx解决办法