idea 启动shorten command line too long 错误解析

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了idea 启动shorten command line too long 错误解析相关的知识,希望对你有一定的参考价值。

参考技术A 因为项目启动的命令行太长了经常是带一些vm参数或者一些依赖jar
idea提供了三种方式

none 是不改变启动命令行
jar manifest是合并内容到manifest后启动
classpath 是通过把参数封装进文件后启动
2、3都行推荐3

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

运行报错

解决方案

修改workspace.xml文件

修改内容

找到以下内容

<component name="PropertiesComponent">
...
</component>

添加一行配置

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

以上是关于idea 启动shorten command line too long 错误解析的主要内容,如果未能解决你的问题,请参考以下文章

Error running ‘xxApplication‘: Command line is too long. Shorten command line for ......

Error running ‘xxApplication‘: Command line is too long. Shorten command line for ......

IDEA命令行缩短器助你解决此问题:Command line is too long. Shorten command line...

IDEA报错:Command line is too long Shorten command line for xxx or also for JUnit default configuration

idea报错Command line is too long. Shorten command line for ServiceStarter

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