IntelliJ IDEA - Command line is too long

Posted 程序员牧码

tags:

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

报错信息

Error running 'xxx':
Command line is too long. Shorten command line for xxx or also for Application default configuration.

解决方案一

找到项目下的.idea/workspace.xml

在标签<component name="PropertiesComponent">里添加一行属性<property name="dynamic.classpath" value="true" />

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

解决方案二

打开程序的运行配置,把Shorten command line改为JAR manifestclasspath file,如图所示

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

IntelliJ IDEA - Command line is too long

Intellij IDEA运行报Command line is too long.Shorten command linefor ...

IntelliJ IDEA for Mac 快捷键整理

Intellij IDEA运行报错Command line is too long的处理解决方法

IntelliJ IDEA For Mac 快捷键

解决: Intellij IDEA 运行报错 Command line is too long