IDEA运行报Command line is too long错误解决办法

171 阅读1分钟

运行idea的时候,突然发现项目跑不了;出现以下错误:

Command line is too long. In order to reduce its length classpath file can be used. Would you like to enable classpath file mode for all run configurations of your project?

在这里插入图片描述

问题解决办法:
在项目下的 .idea\workspace.xml 中找到 《component name=“PropertiesComponent” 》, 在里加一行

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

添加效果:
在这里插入图片描述

小伙伴们,你们学会了吗?如果觉得对你们有所帮助,记得给怂怂右上角点个赞哦!你们的点赞就是我最大的鼓励!谢谢小伙伴们啦!