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>

 

posted @ 2022-03-03 10:52  10114  阅读(291)  评论(0编辑  收藏  举报