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

原创 2019-06-27 14:08:37 其他 阅读(503)

简介 Idea运行报错,Command line is too long,如何解决

报错内容:

Error running ‘ServiceStarter’: Command line is too long. Shorten command line for ServiceStarter or also for Application default configuration.

解决方法:

方法一:

关闭idea,删除项目下的./idea,重新导入项目

方法二:

修改项目下 .idea\workspace.xml
找到标签

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

在标签里加一行

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