IDEA 运行项目报错 Command line is too long

  • 问题:运行程序,Event Log显示报错“Command line is too long” 如下:

  • 解决方案:

    在该项目文件夹中的.idea/workspace.xml中找到

    <component name="PropertiesComponent">

      ...

    </component>

    然后在其中添加:

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

    问题得到解决。