Intellij IDEA运行报错:Command line is too long

报错内容:

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

解决方法一:

找到项目下的 .idea\workspace.xml文件中的标签 <component name="PropertiesComponent"> , 在其中添加一行  <property name="dynamic.classpath" value="true" />

解决方法二:

Run----Edit Configurations----在Configuration标签页中展开Environment----Shorten command line,将选项从user-local default: JAR manifest改为JAR manifest

 

上一篇:IDEA-解决Command line is too long. Shorten command line for SpringBootMainApplication


下一篇:解决IDEA启动时报错Command line is too long. Shorten command line for ChannelApplication